Skip to content

Commit

Permalink
fix "multiple rules generate" error on CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyuan-w committed Oct 18, 2023
1 parent 134af61 commit b4de21e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,10 @@ def get_extensions():

main_file = glob.glob(os.path.join(extensions_dir, "*.cpp")) + glob.glob(
os.path.join(extensions_dir, "ops", "*.cpp")
)
) + glob.glob(os.path.join(extensions_dir, "ops", "autocast", "*.cpp"))
source_cpu = (
glob.glob(os.path.join(extensions_dir, "ops", "autograd", "*.cpp"))
+ glob.glob(os.path.join(extensions_dir, "ops", "cpu", "*.cpp"))
+ glob.glob(os.path.join(extensions_dir, "ops", "autocast", "*.cpp"))
+ glob.glob(os.path.join(extensions_dir, "ops", "quantized", "cpu", "*.cpp"))
)
source_mps = glob.glob(os.path.join(extensions_dir, "ops", "mps", "*.mm"))
Expand Down Expand Up @@ -185,8 +184,6 @@ def get_extensions():
else:
source_cuda = glob.glob(os.path.join(extensions_dir, "ops", "cuda", "*.cu"))

source_cuda += glob.glob(os.path.join(extensions_dir, "ops", "autocast", "*.cpp"))

sources = main_file + source_cpu
extension = CppExtension

Expand Down

0 comments on commit b4de21e

Please sign in to comment.