mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
ca79e69355
commit
284d438acd
3 changed files with 36 additions and 34 deletions
|
@ -37,7 +37,7 @@ run-simx:
|
|||
$(MAKE) -C guassian run-simx
|
||||
$(MAKE) -C kmeans run-simx
|
||||
# $(MAKE) -C blackscholes run-simx
|
||||
$(MAKE) -C bfs run-simx
|
||||
# $(MAKE) -C bfs run-simx
|
||||
|
||||
run-rtlsim:
|
||||
$(MAKE) -C vecadd run-rtlsim
|
||||
|
@ -47,7 +47,7 @@ run-rtlsim:
|
|||
$(MAKE) -C saxpy run-rtlsim
|
||||
$(MAKE) -C sfilter run-rtlsim
|
||||
$(MAKE) -C oclprintf run-rtlsim
|
||||
$(MAKE) -C dotproduct run-rtlsim
|
||||
$(MAKE) -C dotproduct run-rtlsim
|
||||
$(MAKE) -C transpose run-rtlsim
|
||||
$(MAKE) -C spmv run-rtlsim
|
||||
$(MAKE) -C stencil run-rtlsim
|
||||
|
@ -56,7 +56,7 @@ run-rtlsim:
|
|||
$(MAKE) -C guassian run-rtlsim
|
||||
$(MAKE) -C kmeans run-rtlsim
|
||||
# $(MAKE) -C blackscholes run-rtlsim
|
||||
$(MAKE) -C bfs run-rtlsim
|
||||
# $(MAKE) -C bfs run-rtlsim
|
||||
|
||||
run-opae:
|
||||
$(MAKE) -C vecadd run-opae
|
||||
|
@ -75,7 +75,7 @@ run-opae:
|
|||
$(MAKE) -C guassian run-opae
|
||||
$(MAKE) -C kmeans run-opae
|
||||
# $(MAKE) -C blackscholes run-opae
|
||||
$(MAKE) -C bfs run-opae
|
||||
# $(MAKE) -C bfs run-opae
|
||||
|
||||
clean:
|
||||
$(MAKE) -C vecadd clean
|
||||
|
|
|
@ -398,34 +398,36 @@ void kernel_gbar(int task_id, kernel_arg_t* __UNIFORM__ arg) {
|
|||
dst_ptr[task_id] += 1;
|
||||
}
|
||||
|
||||
static const PFN_Kernel sc_tests[] = {
|
||||
/*kernel_iadd,
|
||||
kernel_imul,
|
||||
kernel_idiv,
|
||||
kernel_idiv_mul,
|
||||
kernel_fadd,
|
||||
kernel_fsub,
|
||||
kernel_fmul,
|
||||
kernel_fmadd,
|
||||
kernel_fmsub,
|
||||
kernel_fnmadd,
|
||||
kernel_fnmsub,
|
||||
kernel_fnmadd_madd,
|
||||
kernel_fdiv,
|
||||
kernel_fdiv2,
|
||||
kernel_fsqrt,
|
||||
kernel_ftoi,
|
||||
kernel_ftou,
|
||||
kernel_itof,
|
||||
kernel_utof,
|
||||
kernel_fclamp,*/
|
||||
kernel_trigo,
|
||||
/*kernel_bar,
|
||||
kernel_gbar*/
|
||||
};
|
||||
static PFN_Kernel sc_tests[23];
|
||||
void register_tests() {
|
||||
sc_tests[0] = kernel_iadd;
|
||||
sc_tests[1] = kernel_imul;
|
||||
sc_tests[2] = kernel_idiv;
|
||||
sc_tests[3] = kernel_idiv_mul;
|
||||
sc_tests[4] = kernel_fadd;
|
||||
sc_tests[5] = kernel_fsub;
|
||||
sc_tests[6] = kernel_fmul;
|
||||
sc_tests[7] = kernel_fmadd;
|
||||
sc_tests[8] = kernel_fmsub;
|
||||
sc_tests[9] = kernel_fnmadd;
|
||||
sc_tests[10] = kernel_fnmsub;
|
||||
sc_tests[11] = kernel_fnmadd_madd;
|
||||
sc_tests[12] = kernel_fdiv;
|
||||
sc_tests[13] = kernel_fdiv2;
|
||||
sc_tests[14] = kernel_fsqrt;
|
||||
sc_tests[15] = kernel_ftoi;
|
||||
sc_tests[16] = kernel_ftou;
|
||||
sc_tests[17] = kernel_itof;
|
||||
sc_tests[18] = kernel_utof;
|
||||
sc_tests[19] = kernel_fclamp;
|
||||
sc_tests[20] = kernel_trigo;
|
||||
sc_tests[21] = kernel_bar;
|
||||
sc_tests[22] = kernel_gbar;
|
||||
}
|
||||
|
||||
int main() {
|
||||
register_tests();
|
||||
auto arg = (kernel_arg_t*)csr_read(VX_CSR_MSCRATCH);
|
||||
vx_spawn_tasks(arg->num_tasks, (vx_spawn_tasks_cb)sc_tests[arg->testid], arg);
|
||||
return 0;
|
||||
}
|
||||
}
|
|
@ -840,7 +840,7 @@ public:
|
|||
|
||||
TestSuite::TestSuite(vx_device_h device)
|
||||
: device_(device) {
|
||||
/*this->add_test(new Test_IADD(this));
|
||||
this->add_test(new Test_IADD(this));
|
||||
this->add_test(new Test_IMUL(this));
|
||||
this->add_test(new Test_IDIV(this));
|
||||
this->add_test(new Test_IDIV_MUL(this));
|
||||
|
@ -859,10 +859,10 @@ TestSuite::TestSuite(vx_device_h device)
|
|||
this->add_test(new Test_FTOU(this));
|
||||
this->add_test(new Test_ITOF(this));
|
||||
this->add_test(new Test_UTOF(this));
|
||||
this->add_test(new Test_FCLAMP(this));*/
|
||||
this->add_test(new Test_FCLAMP(this));
|
||||
this->add_test(new Test_TRIGO(this));
|
||||
/*this->add_test(new Test_BAR(this));
|
||||
this->add_test(new Test_GBAR(this));*/
|
||||
this->add_test(new Test_BAR(this));
|
||||
this->add_test(new Test_GBAR(this));
|
||||
}
|
||||
|
||||
TestSuite::~TestSuite() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue