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:
parent
10cb7f931d
commit
2bdd48be2e
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user