-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from adibbley/add-activation
Add windows activation scripts
- Loading branch information
Showing
5 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo on | ||
|
||
:: Backup environment variables (only if the variables are set) | ||
if defined INCLUDE ( | ||
set "INCLUDE_CONDA_NVCC_BACKUP=%INCLUDE%" | ||
) | ||
|
||
:: Append `targets` to search path to give exist includes preference | ||
set "INCLUDE=%INCLUDE%;%LIBRARY_INC%\targets\x64" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@echo on | ||
setlocal enableextensions enabledelayedexpansion || goto :error | ||
|
||
:: Activation script | ||
mkdir %PREFIX%\etc\conda\activate.d | ||
copy %RECIPE_DIR%\activate.bat %PREFIX%\etc\conda\activate.d\~cuda-nvcc_activate.bat || goto :error | ||
|
||
:: Deactivation script | ||
mkdir %PREFIX%\etc\conda\deactivate.d | ||
copy %RECIPE_DIR%\deactivate.bat %PREFIX%\etc\conda\deactivate.d\~cuda-nvcc_deactivate.bat || goto :error | ||
|
||
goto :EOF | ||
|
||
:error | ||
echo Failed with error %errorlevel% | ||
exit /b %errorlevel% |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo on | ||
|
||
:: Restore environment variables (if there is anything to restore) | ||
if defined INCLUDE_CONDA_NVCC_BACKUP ( | ||
set "INCLUDE=%INCLUDE_CONDA_NVCC_BACKUP%" | ||
set "INCLUDE_CONDA_NVCC_BACKUP=" | ||
) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include <cuda_runtime.h> | ||
#include <thrust/version.h> | ||
|
||
int main() { | ||
return 0; | ||
|