4
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 04:14:26 +01:00

include mod for CPU & GPU

This commit is contained in:
Abdallah Ammar 2024-11-28 08:55:19 +01:00
parent 10cb7f931d
commit 2bdd48be2e

View File

@ -195,11 +195,8 @@ exe_dirs = ["QuAcK"]
lib_dirs = list(filter(lambda x: os.path.isdir(x) and \
x not in ["cuda"] and \
x not in exe_dirs, os.listdir(".")))
if USE_GPU:
i = lib_dirs.index("mod")
lib_dirs[0], lib_dirs[i] = lib_dirs[i], lib_dirs[0]
else:
lib_dirs.remove("mod")
i = lib_dirs.index("mod")
lib_dirs[0], lib_dirs[i] = lib_dirs[i], lib_dirs[0]
def create_ninja_in_libdir(directory):
def write_rule(f, source_file, replace):