We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36ec61a commit cab6b54Copy full SHA for cab6b54
src/ptx.jl
@@ -48,10 +48,14 @@ function llvm_machine(target::PTXCompilerTarget)
48
triple = llvm_triple(target)
49
50
# Julia does not ship NVPTX support in its LLVM on Apple
51
+ # We fail to run passes therefore during a cross compile on Apple
52
+ # In that case, just use the local machine triple (since we can't
53
+ # run nvptx locally anyways, and the only use case is a cross
54
+ # compile to local architectures).
55
t = @static if !Sys.isapple()
56
Target(triple=triple)
57
else
- Target(triple="")
58
+ Target(triple=Sys.MACHINE)
59
end
60
61
0 commit comments