-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HIP][LDS] Adding HIP LDS Regression Tests. #1211
base: aomp-dev
Are you sure you want to change the base?
Conversation
ping @b-sumner for review of HIP LDS and device malloc/free overflow test cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for this work. Just a few nits to fix.
@@ -28,6 +28,7 @@ int main(int argc, char *argv[]) { | |||
hipCallSuccessfull(hipMalloc(&D_Ptr, NBytes)); | |||
hipLaunchKernelGGL(TestKernel, dim3(NumOfThreadBlocks), dim3(ThreadBlockSize), | |||
0, 0, N, D_Ptr); | |||
hipDeviceSynchronize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix indentation.
return error == hipSuccess; | ||
} | ||
|
||
__device__ void OffloadToGPU(int *d_ptr){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TestFunction might be a better name than OffloadToGPU
return error == hipSuccess; | ||
} | ||
|
||
__device__ void OffloadToGPU(int *d_ptr, __shared__ int *lds_ptr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OffloadToGPU --> TestFunction
return error == hipSuccess; | ||
} | ||
|
||
__device__ void OffloadToGPU(int *d_ptr){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OffloadToGPU --> TestFunction
No description provided.