Skip to content

Commit

Permalink
add now required -lcurand to solve `undefined symbol: curandCreateG…
Browse files Browse the repository at this point in the history
…enerator` (#1879)
  • Loading branch information
stas00 authored Apr 5, 2022
1 parent 0149bd4 commit c487372
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions op_builder/cpu_adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def absolute_name(self):
def sources(self):
return ['csrc/adam/cpu_adam.cpp', 'csrc/common/custom_cuda_kernel.cu']

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

def include_paths(self):
import torch
if not self.is_rocm_pytorch():
Expand Down

0 comments on commit c487372

Please sign in to comment.