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

[SYCLomatic] Fix the migration of cudaMemcpy in template function #2650

Draft
wants to merge 2 commits into
base: SYCLomatic
Choose a base branch
from

Conversation

zhiweij1
Copy link
Contributor

@zhiweij1 zhiweij1 commented Feb 5, 2025

Signed-off-by: Jiang, Zhiwei [email protected]

@zhiweij1 zhiweij1 requested a review from a team as a code owner February 5, 2025 02:51
cudaMalloc((void **)&d_a, size_bytes);
// CHECK: q_ct1.memcpy(d_a, a, size_bytes);
// CHECK-NEXT: T h_mask[MAX_MASK_WIDTH];
// CHECK-NEXT: q_ct1.memcpy(mask.get_ptr(), h_mask, sizeof(double)).wait();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Output/USM-restricted/USM-restricted.dp.cpp:1351:16: error: use of variable template 'mask' requires template arguments
1351 | q_ct1.memcpy(mask.get_ptr(), h_mask, sizeof(double)).wait();
| ^
Output/USM-restricted/USM-restricted.dp.cpp:1336:36: note: template is declared here
1335 | template
| ~~~~~~~~~~~~~~~~~~~~~
1336 | static dpct::constant_memory<T, 1> mask(MAX_MASK_WIDTH);
| ^

@zhiweij1 zhiweij1 marked this pull request as draft February 18, 2025 02:30
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.

1 participant