10
1
mirror of https://github.com/pfloos/quack synced 2025-01-03 01:55:57 +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 \ lib_dirs = list(filter(lambda x: os.path.isdir(x) and \
x not in ["cuda"] and \ x not in ["cuda"] and \
x not in exe_dirs, os.listdir("."))) x not in exe_dirs, os.listdir(".")))
if USE_GPU: i = lib_dirs.index("mod")
i = lib_dirs.index("mod") lib_dirs[0], lib_dirs[i] = lib_dirs[i], lib_dirs[0]
lib_dirs[0], lib_dirs[i] = lib_dirs[i], lib_dirs[0]
else:
lib_dirs.remove("mod")
def create_ninja_in_libdir(directory): def create_ninja_in_libdir(directory):
def write_rule(f, source_file, replace): def write_rule(f, source_file, replace):