Skip to content

Commit

Permalink
[ROCm] Enable fp_quantizer on ROCm (deepspeedai#7027)
Browse files Browse the repository at this point in the history
This change is required to successfully build fp_quantizer extension on
ROCm.

---------

Co-authored-by: Logan Adams <[email protected]>
Signed-off-by: gyou2021 <[email protected]>
  • Loading branch information
2 people authored and gyou2021 committed Feb 18, 2025
1 parent f7e6f9b commit 2ce885b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion op_builder/fp_quantizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def sources(self):
]

def extra_ldflags(self):
return ['-lcurand']
if not self.is_rocm_pytorch():
return ['-lcurand']
else:
return []

def include_paths(self):
return ['csrc/fp_quantizer/includes', 'csrc/includes']
Expand Down

0 comments on commit 2ce885b

Please sign in to comment.