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 7fcc45b commit dee5390Copy full SHA for dee5390
1 file changed
ext/CUDAExt.jl
@@ -60,7 +60,9 @@ function emit_binary(cache::CacheView, mi::Core.MethodInstance;
60
output_path = tempname() * ".cubin"
61
try
62
write(input_path, bytecode)
63
- run(`$(CUDA_Compiler_jll.tileiras()) $input_path -o $output_path --gpu-name $(opts.sm_arch) -O$(opts.opt_level)`)
+ cmd = addenv(`$(CUDA_Compiler_jll.tileiras()) $input_path -o $output_path --gpu-name $(opts.sm_arch) -O$(opts.opt_level)`,
64
+ "CUDA_ROOT" => CUDA_Compiler_jll.artifact_dir)
65
+ run(cmd)
66
res.cuda_bin = read(output_path)
67
finally
68
rm(input_path, force=true)
0 commit comments