Skip to content
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

Open
wants to merge 1 commit into
base: aomp-dev
Choose a base branch
from

Conversation

ampandey-AMD
Copy link
Contributor

No description provided.

@ampandey-AMD
Copy link
Contributor Author

ping @b-sumner for review of HIP LDS and device malloc/free overflow test cases.

Copy link

@b-sumner b-sumner left a 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();

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){

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) {

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){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OffloadToGPU --> TestFunction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants