We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e18b7c2 commit 8c24ea9Copy full SHA for 8c24ea9
src/ptx.jl
@@ -46,7 +46,14 @@ llvm_triple(target::PTXCompilerTarget) = Int===Int64 ? "nvptx64-nvidia-cuda" : "
46
47
function llvm_machine(target::PTXCompilerTarget)
48
triple = llvm_triple(target)
49
- t = Target(triple=triple)
+
50
+ # Julia does not ship NVPTX support in its LLVM on Apple
51
+ t = @static if !Sys.isapple()
52
+ Target(triple=triple)
53
+ else
54
+ Target()
55
+ end
56
57
58
tm = TargetMachine(t, triple, "sm_$(target.cap.major)$(target.cap.minor)",
59
"+ptx$(target.ptx.major)$(target.ptx.minor)")
0 commit comments