Skip to content
Snippets Groups Projects
Commit 2939e580 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Use get_compiler_config()['command'] as host compiler for Torch Modules

parent 7def7d13
No related branches found
No related tags found
No related merge requests found
Pipeline #20805 failed
......@@ -119,6 +119,9 @@ class TorchModule(JinjaCppFile):
if not exists(file_name):
write_file(file_name, source_code)
# Torch regards CXX
os.environ['CXX'] = get_compiler_config()['command']
torch_extension = load(hash,
[file_name],
with_cuda=self.is_cuda,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment