From 1dad8c4329c98f39f8ec21bf022e440cc63b08db Mon Sep 17 00:00:00 2001 From: Aaron Enye Shi Date: Tue, 12 Feb 2019 16:56:22 +0000 Subject: [PATCH] Fix texture using constant addrspace 4 [ROCm/hip commit: 63b400beea2a2d273b1d253167bcf1cc039b3b38] --- projects/hip/include/hip/hcc_detail/texture_functions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hcc_detail/texture_functions.h b/projects/hip/include/hip/hcc_detail/texture_functions.h index c293d65558..1f22e01177 100644 --- a/projects/hip/include/hip/hcc_detail/texture_functions.h +++ b/projects/hip/include/hip/hcc_detail/texture_functions.h @@ -50,7 +50,7 @@ union TData { #define __TEXTURE_FUNCTIONS_DECL__ static inline __device__ -#if (__hcc_workweek__ >= 18114) +#if (__hcc_workweek__ >= 18114) || __clang__ #define ADDRESS_SPACE_CONSTANT __attribute__((address_space(4))) #else #define ADDRESS_SPACE_CONSTANT __attribute__((address_space(2)))