Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

HIP: enable RDNA4 gfx1201 (RX 9070 / AI PRO R9700)

doplxyzca574a27ad7d
diff --git a/cmake/hip_backend.cmake b/cmake/hip_backend.cmake
index 42f50e11d..12941a386 100644
--- a/cmake/hip_backend.cmake
+++ b/cmake/hip_backend.cmake
@@ -3,7 +3,7 @@
if(NOT DEFINED CMAKE_HIP_ARCHITECTURES OR CMAKE_HIP_ARCHITECTURES STREQUAL "")
set(CMAKE_HIP_ARCHITECTURES gfx1100 CACHE STRING "Strata HIP target architecture")
endif()
-if(NOT CMAKE_HIP_ARCHITECTURES STREQUAL "gfx1100")
+if(NOT CMAKE_HIP_ARCHITECTURES MATCHES "^(gfx1100|gfx1201)$")
message(FATAL_ERROR
"Strata HIP currently supports only gfx1100 wave32; CMAKE_HIP_ARCHITECTURES is '${CMAKE_HIP_ARCHITECTURES}'")
endif()
diff --git a/include/strata/hip_compat/intrinsics.hpp b/include/strata/hip_compat/intrinsics.hpp
index 1ab2462f5..ffffb2fd7 100644
--- a/include/strata/hip_compat/intrinsics.hpp
+++ b/include/strata/hip_compat/intrinsics.hpp
@@ -15,7 +15,7 @@ __device__ __forceinline__ int signed_byte(uint32_t word, int lane) {
// CUDA's signed __dp4a: four signed byte products accumulated modulo 2^32.
__device__ __forceinline__ int dp4a(int a, int b, int c) {
-#if defined(__gfx1100__) && __has_builtin(__builtin_amdgcn_sudot4)
+#if (defined(__gfx1100__) || defined(__gfx1201__)) && __has_builtin(__builtin_amdgcn_sudot4)
// RDNA3 exposes the signed/unsigned dot4 form. Mark both packed operands
// signed to preserve CUDA __dp4a semantics; keep the portable path for
// other HIP compilers/targets.
diff --git a/setup.py b/setup.py
index e05cda39a..b195d0605 100644
--- a/setup.py
+++ b/setup.py
@@ -706,8 +706,8 @@ def cuda_lib_dirs():
# has hipcc and hipBLAS) and the engine is compiled here. One GPU, no images yet.
ROCM_INDEX = os.environ.get("STRATA_ROCM_INDEX", "https://rocm.nightlies.amd.com/v2/gfx110X-dgpu/")
ROCM_VERSION = os.environ.get("STRATA_ROCM_VERSION", "7.10.0a20251120") # what Strata's HIP build was tested with
-AMD_ARCHS = ("gfx1100",)
-AMD_NAMES = {"gfx1100": "AMD Radeon RX 7900 series (gfx1100)"} # when sysfs has no product name
+AMD_ARCHS = ("gfx1100", "gfx1201")
+AMD_NAMES = {"gfx1100": "AMD Radeon RX 7900 series (gfx1100)", "gfx1201": "AMD Radeon RX 9070 / AI PRO R9700 (gfx1201)"} # when sysfs has no product name
def amd_gpus():
diff --git a/src/core/device.cu b/src/core/device.cu
index 64a837350..1e1a7d0be 100644
--- a/src/core/device.cu
+++ b/src/core/device.cu
@@ -66,7 +66,7 @@ DeviceInfo device_info(int ordinal) {
// to a machine with an older card and would otherwise silently take whatever path the driver chose. The HIP
// backend is validated on gfx1100 (wave32) only.
#if defined(STRATA_USE_HIP)
- if (std::strncmp(p.gcnArchName, "gfx1100", 7) != 0 || p.warpSize != 32) {
+ if ((std::strncmp(p.gcnArchName, "gfx1100", 7) != 0 && std::strncmp(p.gcnArchName, "gfx1201", 7) != 0) || p.warpSize != 32) {
throw CudaError("HIP backend requires validated gfx1100 wave32 hardware", -1);
}
#else