diff --git a/bindings/python/src/_pyghex/structured/regular/field_descriptor.cpp b/bindings/python/src/_pyghex/structured/regular/field_descriptor.cpp index 099e1538..b65771a3 100644 --- a/bindings/python/src/_pyghex/structured/regular/field_descriptor.cpp +++ b/bindings/python/src/_pyghex/structured/regular/field_descriptor.cpp @@ -52,7 +52,7 @@ struct ndarray_device_type template<> struct ndarray_device_type { -#ifdef __HIP_PLATFORM_HCC__ +#ifdef __HIP_PLATFORM_AMD__ using type = nanobind::device::rocm; #else using type = nanobind::device::cuda; diff --git a/bindings/python/src/_pyghex/unstructured/field_descriptor.cpp b/bindings/python/src/_pyghex/unstructured/field_descriptor.cpp index 4ecc600a..41b0e855 100644 --- a/bindings/python/src/_pyghex/unstructured/field_descriptor.cpp +++ b/bindings/python/src/_pyghex/unstructured/field_descriptor.cpp @@ -42,7 +42,7 @@ struct ndarray_device_type template<> struct ndarray_device_type { -#ifdef __HIP_PLATFORM_HCC__ +#ifdef __HIP_PLATFORM_AMD__ using type = nanobind::device::rocm; #else using type = nanobind::device::cuda;