mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-27 07:47:05 +00:00
[setup] use env var instead of option for cuda ext (#839)
This commit is contained in:
parent
943982d29a
commit
9f6f656952
3
setup.py
3
setup.py
@ -9,8 +9,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
|
|||||||
build_cuda_ext = True
|
build_cuda_ext = True
|
||||||
ext_modules = []
|
ext_modules = []
|
||||||
|
|
||||||
if '--no_cuda_ext' in sys.argv:
|
if int(os.environ.get('NO_CUDA_EXT', '0')) == 1:
|
||||||
sys.argv.remove('--no_cuda_ext')
|
|
||||||
build_cuda_ext = False
|
build_cuda_ext = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user