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 5239ce7 commit e4f2715Copy full SHA for e4f2715
setup.py
@@ -491,6 +491,13 @@ def get_extensions():
491
print("Currently only gfx942 is supported. Compiling only for gfx942.")
492
extra_compile_args["nvcc"].append("--offload-arch=gfx942")
493
sources += rocm_sources
494
+ else:
495
+ # Remove ROCm-based sources from the sources list.
496
+ extensions_rocm_dir = os.path.join(extensions_dir, "rocm")
497
+ rocm_sources = list(
498
+ glob.glob(os.path.join(extensions_rocm_dir, "**/*.cpp"), recursive=True)
499
+ )
500
+ sources = [s for s in sources if s not in rocm_sources]
501
502
use_cutlass = False
503
cutlass_90a_sources = None
0 commit comments