mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 20:40:34 +00:00
[builder] reconfig op_builder for pypi install (#2314)
This commit is contained in:
@@ -25,10 +25,12 @@ def get_cuda_cc_flag() -> List:
|
||||
class Builder(object):
|
||||
|
||||
def colossalai_src_path(self, code_path):
|
||||
if os.path.isabs(code_path):
|
||||
return code_path
|
||||
current_file_path = Path(__file__)
|
||||
if os.path.islink(current_file_path.parent):
|
||||
# symbolic link
|
||||
return os.path.join(current_file_path.parent.parent.absolute(), code_path)
|
||||
else:
|
||||
return os.path.join(Path(__file__).parent.parent.absolute(), code_path)
|
||||
return os.path.join(current_file_path.parent.parent.absolute(), "colossalai", "kernel", code_path)
|
||||
|
||||
def get_cuda_home_include(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user