aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-07-17 09:34:45 +0100
committerJay Foad <jay.foad@amd.com>2023-07-17 13:06:12 +0100
commit92542f2a400024e8a878242afe8231e17df345e5 (patch)
treefd42491f5e3401af8bac8004057cd56531615f4e /libc
parente6afacc0347c8f95678d56692ebc409ae85b162c (diff)
downloadllvm-92542f2a400024e8a878242afe8231e17df345e5.zip
llvm-92542f2a400024e8a878242afe8231e17df345e5.tar.gz
llvm-92542f2a400024e8a878242afe8231e17df345e5.tar.bz2
[AMDGPU] Add targets gfx1150 and gfx1151
This is the target definition only. Currently they are treated the same as GFX 11.0.x. Differential Revision: https://reviews.llvm.org/D155429
Diffstat (limited to 'libc')
-rw-r--r--libc/cmake/modules/prepare_libc_gpu_build.cmake2
-rw-r--r--libc/src/math/gpu/vendor/amdgpu/platform.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/libc/cmake/modules/prepare_libc_gpu_build.cmake b/libc/cmake/modules/prepare_libc_gpu_build.cmake
index 9d5f2d3..ea79a42 100644
--- a/libc/cmake/modules/prepare_libc_gpu_build.cmake
+++ b/libc/cmake/modules/prepare_libc_gpu_build.cmake
@@ -7,7 +7,7 @@ endif()
set(all_amdgpu_architectures "gfx700;gfx701;gfx801;gfx803;gfx900;gfx902;gfx906"
"gfx908;gfx90a;gfx90c;gfx940;gfx1010;gfx1030"
"gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036"
- "gfx1100;gfx1101;gfx1102;gfx1103")
+ "gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151")
set(all_nvptx_architectures "sm_35;sm_37;sm_50;sm_52;sm_53;sm_60;sm_61;sm_62"
"sm_70;sm_72;sm_75;sm_80;sm_86")
set(all_gpu_architectures
diff --git a/libc/src/math/gpu/vendor/amdgpu/platform.h b/libc/src/math/gpu/vendor/amdgpu/platform.h
index 543f408..ae2890b 100644
--- a/libc/src/math/gpu/vendor/amdgpu/platform.h
+++ b/libc/src/math/gpu/vendor/amdgpu/platform.h
@@ -100,6 +100,10 @@ extern const uint32_t __oclc_ISA_version = 11001;
extern const uint32_t __oclc_ISA_version = 11002;
#elif defined(__gfx1103__)
extern const uint32_t __oclc_ISA_version = 11003;
+#elif defined(__gfx1150__)
+extern const uint32_t __oclc_ISA_version = 11500;
+#elif defined(__gfx1151__)
+extern const uint32_t __oclc_ISA_version = 11501;
#else
#error "Unknown AMDGPU architecture"
#endif