|
@@ -189,7 +189,7 @@ __device__ inline bool _gt(const unsigned int * x)
|
|
|
}
|
|
}
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
-#define nmult 1000
|
|
|
|
|
|
|
+#define nmult 750
|
|
|
#define nlaunch 2
|
|
#define nlaunch 2
|
|
|
|
|
|
|
|
#define threadDimx 32
|
|
#define threadDimx 32
|
|
@@ -488,8 +488,8 @@ void cuda_dl(const ZZ_p &base, const ZZ_p &target, const ZZ &order,
|
|
|
order_0, order_1, order_2, dpfreq);
|
|
order_0, order_1, order_2, dpfreq);
|
|
|
checkCUDAError("kernel launch");
|
|
checkCUDAError("kernel launch");
|
|
|
|
|
|
|
|
- cudaThreadSynchronize();
|
|
|
|
|
- checkCUDAError("thread sync");
|
|
|
|
|
|
|
+ cudaDeviceSynchronize();
|
|
|
|
|
+ checkCUDAError("device sync");
|
|
|
bool single_launch_filled_dp_buffer = false;
|
|
bool single_launch_filled_dp_buffer = false;
|
|
|
stop_computing = DPstreamParse(cbdata, &num_dps, &single_launch_filled_dp_buffer);
|
|
stop_computing = DPstreamParse(cbdata, &num_dps, &single_launch_filled_dp_buffer);
|
|
|
*filled_dp_buffer = (*filled_dp_buffer || single_launch_filled_dp_buffer);
|
|
*filled_dp_buffer = (*filled_dp_buffer || single_launch_filled_dp_buffer);
|
|
@@ -581,7 +581,7 @@ cout << i << ": " << l_Z[i] << " != " << l_z[i + t * WORDS] << "\n";
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
char timestamp[20];
|
|
char timestamp[20];
|
|
|
- sprintf(timestamp, "%d.%06d", et.tv_sec, et.tv_usec);
|
|
|
|
|
|
|
+ sprintf(timestamp, "%ld.%06ld", et.tv_sec, et.tv_usec);
|
|
|
|
|
|
|
|
unsigned long long totnanos = totmicros * 1000;
|
|
unsigned long long totnanos = totmicros * 1000;
|
|
|
AtomicWriter(cout) << timestamp << ":" << output_prefix << ": " << totmicros << " us / " << nthreads << " = " << totmicros / nthreads << " us / " << (nmult*local_launchcount) << " = " << totnanos / ((unsigned long long)nthreads * nmult * local_launchcount) << " ns\n";
|
|
AtomicWriter(cout) << timestamp << ":" << output_prefix << ": " << totmicros << " us / " << nthreads << " = " << totmicros / nthreads << " us / " << (nmult*local_launchcount) << " = " << totnanos / ((unsigned long long)nthreads * nmult * local_launchcount) << " ns\n";
|