Skip to content

Commit

Permalink
Corrected names of backends.
Browse files Browse the repository at this point in the history
  • Loading branch information
JackAKirk committed Mar 26, 2024
1 parent 8f2848d commit 2740232
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/MPI_with_SYCL/send_recv_buff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ int main(int argc, char *argv[]) {
// get the native GPU device pointer from the SYCL accessor.
#if defined(USE_HIP)
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::hip>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_hip>(acc));
#elif defined(USE_L0)
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::level_zero>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_level_zero>(acc));
#else
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::cuda>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_cuda>(acc));
#endif

MPI_Status status;
Expand All @@ -105,13 +105,13 @@ int main(int argc, char *argv[]) {
// get the native GPU device pointer from the SYCL accessor.
#if defined(USE_HIP)
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::hip>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_hip>(acc));
#elif defined(USE_L0)
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::level_zero>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_level_zero>(acc));
#else
auto gpu_ptr = reinterpret_cast<int *>(
ih.get_native_mem<sycl::backend::cuda>(acc));
ih.get_native_mem<sycl::backend::ext_oneapi_cuda>(acc));
#endif

MPI_Status status;
Expand Down

0 comments on commit 2740232

Please sign in to comment.