Skip to content

Commit 4f4b991

Browse files
authored
PTX: Don't use a 32-bit pointer index type. (#462)
Apparently that breaks support for 64 bits indices, which we still want to support.
1 parent f608d82 commit 4f4b991

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ptx.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ llvm_datalayout(target::PTXCompilerTarget) =
5959
# little endian
6060
"e-" *
6161
# on 32-bit systems, use 32-bit pointers.
62-
# on 64-bit systems, use 64-bit pointers, but prefer 32-bit indexing.
63-
# this is not what the NVPTX user guide recommends, but helps for performance.
64-
(Int === Int64 ? "p:64:64:64:32-" : "p:32:32:32-") *
62+
# on 64-bit systems, use 64-bit pointers.
63+
(Int === Int64 ? "p:64:64:64-" : "p:32:32:32-") *
6564
# alignment of integer types
6665
"i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-" *
6766
# alignment of floating point types

0 commit comments

Comments
 (0)