This commit is contained in:
Evghenii
2013-11-19 09:11:20 +01:00
parent 4bc8c79bd3
commit 86567ba96f
3 changed files with 61 additions and 22 deletions

View File

@@ -129,7 +129,7 @@ int main() {
// the minimum time of three runs.
//
double minTimeISPCTasks = 1e30;
const bool print_log = false;
bool print_log = true;
const int nreg = 128;
for (int i = 0; i < 3; ++i) {
reset_and_start_timer();
@@ -152,6 +152,7 @@ int main() {
&x0, &x1, &y0, &y1, &z0, &z1, &Nx, &Ny, &Nz,
&d_coeff, &d_vsq, &d_Aispc0, &d_Aispc1};
double dt = 1e3*CUDALaunch(NULL, func_name, func_args, print_log, nreg);
print_log = false;
minTimeISPCTasks = std::min(minTimeISPCTasks, dt);
}
memcpyD2H(Aispc[1], d_Aispc1, bufsize);