Fix compilation error with nvcc (c++ nullptr)

此提交包含在:
Ben Sander
2017-04-21 09:01:34 -05:00
父節點 ad280696c6
當前提交 2335bcdd03
共有 2 個檔案被更改,包括 2 行新增 和 1 行删除
+1 -1
查看文件
@@ -83,7 +83,7 @@ int main(int argc, char *argv[])
const unsigned threadsPerBlock = 256;
printf ("info: launch 'vector_square' kernel\n");
hipLaunchKernel(vector_square, dim3(blocks), dim3(threadsPerBlock), 0, nullptr, C_d, A_d, N);
hipLaunchKernel(vector_square, dim3(blocks), dim3(threadsPerBlock), 0, 0, C_d, A_d, N);
printf ("info: copy Device2Host\n");
CHECK ( hipMemcpy(C_h, C_d, Nbytes, hipMemcpyDeviceToHost));