-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
39 lines (25 loc) · 930 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# -*- coding: utf-8 -*-
"""
If build is not found, it can be obtained in
the cuda_manager repo in the shared_utils folder.
"""
import argparse
import os
from pycu_interface import build
__lib_name = "cu_cross_correlate"
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-arch', '--arch',
action="store", dest="arch",
help="CUDA hardware architecture version",
default="sm_30")
parser.add_argument('-cc_bin', '--cc_bin',
action="store", dest="cc_bin",
help="Path to the cl.exe bin folder on Windows",
default=None)
args = parser.parse_args()
module_path = os.path.abspath(os.path.dirname(__file__))
print(module_path)
build(module_path, __lib_name, args.arch, args.cc_bin)
if __name__ == "__main__":
main()