Skip to content

Commit 0e79ee9

Browse files
committed
PTX: Default to 32-bit indexing of pointers.
1 parent 5de5a5c commit 0e79ee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ptx.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ end
5656

5757
# the default datalayout does not match the one in the NVPTX user guide
5858
llvm_datalayout(target::PTXCompilerTarget) = Int===Int64 ?
59-
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"*
59+
"e-p:64:64:64:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"*
6060
"-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64" :
6161
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64"*
6262
"-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"

0 commit comments

Comments
 (0)