Fix compilation error with nvcc (c++ nullptr)

[ROCm/clr commit: f1f907cb51]
Cette révision appartient à :
Ben Sander
2017-04-21 09:01:34 -05:00
Parent 4ac3084503
révision acacf26ed8
2 fichiers modifiés avec 2 ajouts et 1 suppressions
+1
Voir le fichier
@@ -15,5 +15,6 @@ square.hip.out: square.hipref.cpp
clean:
rm -f *.o *.out
+1 -1
Voir le fichier
@@ -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));