Skip to content

Commit

Permalink
Update cpu_adam.py (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffra authored May 19, 2022
1 parent 7924942 commit 737fee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion op_builder/cpu_adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ def sources(self):

def libraries_args(self):
args = super().libraries_args()
args += ['curand']
if not self.is_rocm_pytorch():
args += ['curand']
return args

def include_paths(self):
Expand Down

0 comments on commit 737fee6

Please sign in to comment.