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

[SYCL][CUDA] Fix CUDA plug-in build with enabled assertions #1325

Merged
merged 1 commit into from
Mar 17, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sycl/plugins/cuda/pi_cuda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3162,7 +3162,7 @@ pi_result cuda_piextUSMHostAlloc(void **result_ptr, pi_context context,
} catch (pi_result error) {
result = error;
}
assert(*result_ptr % alignment == 0);
assert(reinterpret_cast<std::uintptr_t>(*result_ptr) % alignment == 0);
return result;
}

Expand All @@ -3181,7 +3181,7 @@ pi_result cuda_piextUSMDeviceAlloc(void **result_ptr, pi_context context,
} catch (pi_result error) {
result = error;
}
assert(*result_ptr % alignment == 0);
assert(reinterpret_cast<std::uintptr_t>(*result_ptr) % alignment == 0);
return result;
}

Expand All @@ -3201,7 +3201,7 @@ pi_result cuda_piextUSMSharedAlloc(void **result_ptr, pi_context context,
} catch (pi_result error) {
result = error;
}
assert(*result_ptr % alignment == 0);
assert(reinterpret_cast<std::uintptr_t>(*result_ptr) % alignment == 0);
return result;
}

Expand Down