get LLVM_MAIN_REVISION macro from compiler header (#3469)

This commit is contained in:
Illia Silin
2025-12-19 14:57:12 -08:00
committed by GitHub
parent f67a20b0be
commit 2d9c962e2c
2 changed files with 17 additions and 1 deletions

View File

@@ -39,7 +39,7 @@
#define CK_TILE_DEVICE inline __device__
#define CK_TILE_HOST_DEVICE inline __host__ __device__
#define CK_TILE_DEVICE_EXTERN __device__
#if __clang_major__ < 22
#if LLVM_MAIN_REVISION < 554785
#define CK_TILE_HOST_DEVICE_EXTERN __host__ __device__
#else
#define CK_TILE_HOST_DEVICE_EXTERN