Commit f932159b authored by Neil Gershenfeld's avatar Neil Gershenfeld

try peer

parent 9867b41d
......@@ -27,7 +27,7 @@ int main(void) {
init<<<blocks,threads>>>(darr,nloop);
cudaDeviceSynchronize();
cudaMemcpy(arr,darr,npts*sizeof(double),cudaMemcpyDeviceToHost);
float pi = 0;
double pi = 0;
for (int i = 0; i < npts; ++i)
pi += arr[i];
auto tend = std::chrono::high_resolution_clock::now();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment