Skip to content

Commit

Permalink
Add the non-coherent memory advice flag as unsupported in the CUDA ad…
Browse files Browse the repository at this point in the history
…apter implementation
  • Loading branch information
GeorgeWeb committed Jan 17, 2024
1 parent fd305a5 commit 177e351
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/adapters/cuda/enqueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,13 @@ ur_result_t setCuMemAdvise(CUdeviceptr DevPtr, size_t Size,
}
}

std::array<ur_usm_advice_flags_t, 4> UnmappedMemAdviceFlags = {
std::array<ur_usm_advice_flags_t, 6> UnmappedMemAdviceFlags = {
UR_USM_ADVICE_FLAG_SET_NON_ATOMIC_MOSTLY,
UR_USM_ADVICE_FLAG_CLEAR_NON_ATOMIC_MOSTLY,
UR_USM_ADVICE_FLAG_BIAS_CACHED, UR_USM_ADVICE_FLAG_BIAS_UNCACHED};
UR_USM_ADVICE_FLAG_BIAS_CACHED,
UR_USM_ADVICE_FLAG_BIAS_UNCACHED,
UR_USM_ADVICE_FLAG_SET_NON_COHERENT_MEMORY,
UR_USM_ADVICE_FLAG_CLEAR_NON_COHERENT_MEMORY};

for (auto &UnmappedFlag : UnmappedMemAdviceFlags) {
if (URAdviceFlags & UnmappedFlag) {
Expand Down

0 comments on commit 177e351

Please sign in to comment.