File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ _Pragma("omp begin declare target device_type(nohost)");
2424_Pragma ("omp begin declare variant match(device = {arch(amdgcn)})" );
2525
2626// Type aliases to the address spaces used by the AMDGPU backend.
27- #define __gpu_private __attribute__((opencl_private ))
28- #define __gpu_constant __attribute__((opencl_constant ))
29- #define __gpu_local __attribute__((opencl_local ))
30- #define __gpu_global __attribute__((opencl_global ))
31- #define __gpu_generic __attribute__((opencl_generic ))
27+ #define __gpu_private __attribute__((address_space(5) ))
28+ #define __gpu_constant __attribute__((address_space(4) ))
29+ #define __gpu_local __attribute__((address_space(3) ))
30+ #define __gpu_global __attribute__((address_space(1) ))
31+ #define __gpu_generic __attribute__((address_space(0) ))
3232
3333// Attribute to declare a function as a kernel.
3434#define __gpu_kernel __attribute__((amdgpu_kernel, visibility("protected")))
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ _Pragma("omp begin declare target device_type(nohost)");
2424_Pragma ("omp begin declare variant match(device = {arch(nvptx64)})" );
2525
2626// Type aliases to the address spaces used by the NVPTX backend.
27- #define __gpu_private __attribute__((opencl_private ))
28- #define __gpu_constant __attribute__((opencl_constant ))
29- #define __gpu_local __attribute__((opencl_local ))
30- #define __gpu_global __attribute__((opencl_global ))
31- #define __gpu_generic __attribute__((opencl_generic ))
27+ #define __gpu_private __attribute__((address_space(5) ))
28+ #define __gpu_constant __attribute__((address_space(4) ))
29+ #define __gpu_local __attribute__((address_space(3) ))
30+ #define __gpu_global __attribute__((address_space(1) ))
31+ #define __gpu_generic __attribute__((address_space(0) ))
3232
3333// Attribute to declare a function as a kernel.
3434#define __gpu_kernel __attribute__((nvptx_kernel, visibility("protected")))
You can’t perform that action at this time.
0 commit comments