Skip to content

Commit

Permalink
Update core/src/Cuda/Kokkos_CudaSpace.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Damien L-G <[email protected]>
  • Loading branch information
diehlpk and dalg24 authored Jul 24, 2024
1 parent b30a466 commit b5aaa2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Cuda/Kokkos_CudaSpace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void *impl_allocate_common(const int device_id,
error_code = cudaMallocManaged(&ptr, arg_alloc_size, cudaMemAttachGlobal);
if (error_code == cudaSuccess) {
// One would think cudaMemLocation{device_id,
// cudaMemLocationTypeDeivce} would work but it doesn't. I.e. the order of
// cudaMemLocationTypeDevice} would work but it doesn't. I.e. the order of
// members doesn't seem to be defined.
cudaMemLocation loc;
loc.id = device_id;
Expand Down

0 comments on commit b5aaa2c

Please sign in to comment.