Created
October 20, 2014 13:45
-
-
Save ptheywood/4031f2c8d1a59cb4c195 to your computer and use it in GitHub Desktop.
Sublime text build script for c++ cuda, modified to be windows friendly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": [ | |
"nvcc", | |
"-arch=sm_20", | |
"$file", | |
"-o", | |
"${file_path}/${file_base_name}" | |
], | |
"file_regex": "^(..[^:]):([0-9]+):?([0-9]+)?:? (.)$", | |
"working_dir": "${file_path}", | |
"selector": "source.cu", | |
"variants": [ | |
{ | |
"name": "Run", | |
"cmd": [ | |
"bash", | |
"-c", | |
"nvcc -arch=sm_20 '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'" | |
], | |
"windows": { | |
"cmd": [ | |
"cmd", | |
"/c", | |
"nvcc -arch=sm_20 ${file} -o ${file_path}\\\\${file_base_name} && ${file_path}\\\\${file_base_name} " | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment