-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinit.py
More file actions
24 lines (22 loc) · 1.02 KB
/
init.py
File metadata and controls
24 lines (22 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import shutil
import os
def main():
shutil.copy("frameworks/halloc/fixes/grid.cuh", "frameworks/halloc/repository/src/grid.cuh")
shutil.copy("frameworks/halloc/fixes/slab.cuh", "frameworks/halloc/repository/src/slab.cuh")
shutil.copy("frameworks/halloc/fixes/utils.h", "frameworks/halloc/repository/src/utils.h")
shutil.copy("frameworks/halloc/fixes/globals.cuh", "frameworks/halloc/repository/src/globals.cuh")
shutil.copy("frameworks/halloc/fixes/size-info.h", "frameworks/halloc/repository/src/size-info.h")
shutil.copy("frameworks/halloc/fixes/size-info.cuh", "frameworks/halloc/repository/src/size-info.cuh")
print("Fixed Halloc")
print("Did you install Boost? (y/n)")
inputfromconsole = input()
if not (inputfromconsole == "yes" or inputfromconsole == "y"):
exit()
if os.name == 'nt': # If on Windows
print("Did you set BOOST_DIR in BaseCMake.cmake? (y/n)")
inputfromconsole = input()
if not (inputfromconsole == "yes" or inputfromconsole == "y"):
exit()
print("Init done!")
if __name__ == "__main__":
main()