From 772daf0f7a9c450c9e01d024a8fbe7d8bc7cc27c Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Tue, 29 Oct 2024 08:20:29 +0800 Subject: [PATCH] Removed nvcc compilation processes on build script. --- build.py | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/build.py b/build.py index 4ea7245..74e7af9 100644 --- a/build.py +++ b/build.py @@ -167,17 +167,6 @@ def download_libui(): os.path.join(OUT_DIR, 'libui.dll') ] + cc_files - cuda_exe_build_args = [ - 'nvcc', '-x=cu', '-std=c++20', - '--compiler-options=/openmp', - '--compiler-options=/std:c++20', - '-Iinclude' - ] + cpp_files + [ - '-lcudadevrt', - '-lcudart_static', - '-o' - ] + [OUTPUT_EXECUTABLE + '-nvidia'] - print("Executing:") print(' '.join(exe_build_args)) subprocess.run(exe_build_args) @@ -190,10 +179,6 @@ def download_libui(): print(' '.join(lib_build_args)) subprocess.run(lib_build_args) - print("Executing:") - print(' '.join(cuda_exe_build_args)) - subprocess.run(cuda_exe_build_args) - elif PLATFORM == 'Linux': exe_build_args= [ 'g++', '-Iinclude', '-Wall', '-pedantic', '-Wdisabled-optimization', @@ -227,16 +212,6 @@ def download_libui(): OUTPUT_CORE, os.path.join(OUT_DIR, 'libui.so') ] + cc_files - cuda_exe_build_args = [ - 'nvcc', '-x=cu', '-std=c++20', - '--compiler-options=-fopenmp', - '-Iinclude' - ] + cpp_files + [ - '-lcudadevrt', - '-lcudart_static', - '-o' - ] + [OUTPUT_EXECUTABLE + '-nvidia'] - print("Executing:") print(' '.join(exe_build_args)) subprocess.run(exe_build_args) @@ -249,10 +224,6 @@ def download_libui(): print(' '.join(lib_build_args)) subprocess.run(lib_build_args) - print("Executing:") - print(' '.join(cuda_exe_build_args)) - subprocess.run(cuda_exe_build_args) - elif PLATFORM == 'Darwin': exe_build_args = [ '/opt/homebrew/opt/llvm/bin/clang++', '-Iinclude', '-Wall',