diff --git a/projects/hip-tests/samples/0_Intro/square/square.cu b/projects/hip-tests/samples/0_Intro/square/square.cu index 8b6980cd02..ec8ca12fbf 100644 --- a/projects/hip-tests/samples/0_Intro/square/square.cu +++ b/projects/hip-tests/samples/0_Intro/square/square.cu @@ -24,7 +24,7 @@ THE SOFTWARE. #define CHECK(cmd) \ {\ - hipError_t error = cmd;\ + cudaError_t error = cmd;\ if (error != cudaSuccess) { \ fprintf(stderr, "error: '%s'(%d) at %s:%d\n", cudaGetErrorString(error), error,__FILE__, __LINE__); \ exit(EXIT_FAILURE);\