[hip] bump version to 50300000

This commit is contained in:
Dr. Mathieu Taillefumier 2023-08-03 17:38:25 +02:00 committed by Ole Schütt
parent 44530f2c6c
commit 4773fc6ffb

View file

@ -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));