Skip to content

Commit

Permalink
hint to host
Browse files Browse the repository at this point in the history
  • Loading branch information
ngc92 committed Aug 15, 2024
1 parent c845757 commit f72c1f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llmc/cuda_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ void cudaMallocConditionallyManaged(void** out, size_t bytes, const char *file,
// reset the error before the next API call
cudaGetLastError();
cudaCheck_(cudaMallocManaged(out, bytes), file, line);
cudaCheck_(cudaMemAdvise(*out, bytes, cudaMemAdviseSetPreferredLocation, cudaCpuDeviceId), file, line);
} else {
cudaCheck_(err, file, line);
}
Expand Down

0 comments on commit f72c1f2

Please sign in to comment.