Skip to content

Commit

Permalink
[hip] bump version to 50300000
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaillefumier authored and oschuett committed Aug 4, 2023
1 parent 44530f2 commit 4773fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/offload/offload_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ static inline void offloadEnsureMallocHeapSize(const size_t required_size) {
if (current_size < required_size) {
OFFLOAD_CHECK(cudaDeviceSetLimit(cudaLimitMallocHeapSize, required_size));
}
#elif defined(__OFFLOAD_HIP) && (HIP_VERSION > 50200000)
#elif defined(__OFFLOAD_HIP) && (HIP_VERSION >= 50300000)
OFFLOAD_CHECK(hipDeviceGetLimit(&current_size, hipLimitMallocHeapSize));
if (current_size < required_size) {
OFFLOAD_CHECK(hipDeviceSetLimit(hipLimitMallocHeapSize, required_size));
Expand Down

0 comments on commit 4773fc6

Please sign in to comment.