-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
404e9d4
commit 3a6f68e
Showing
1 changed file
with
35 additions
and
35 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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Function to generate environment.yml | ||
generate_environment_yml() { | ||
local python_version=$1 | ||
local cuda_version=$2 | ||
local output_path=$3 | ||
|
||
cat <<EOF > "${output_path}/environment.yml" | ||
name: cuda_python | ||
channels: | ||
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python=${python_version} | ||
- cython | ||
- pytest | ||
- numpy | ||
- setuptools | ||
- wheel | ||
- pip | ||
- cuda-version=${cuda_version} | ||
- cuda-cudart-static | ||
- cuda-driver-dev | ||
- cuda-cudart-dev | ||
- cuda-profiler-api | ||
- cuda-nvrtc-dev | ||
- cuda-nvcc | ||
- pip: | ||
- pytest-benchmark | ||
- pyclibrary | ||
- versioneer==0.29 | ||
- tomli; python_version < "3.11" | ||
- pywin32; sys_platform == 'win32' | ||
EOF | ||
#!/usr/bin/env bash | ||
|
||
# Function to generate environment.yml | ||
generate_environment_yml() { | ||
local python_version=$1 | ||
local cuda_version=$2 | ||
local output_path=$3 | ||
|
||
cat <<EOF > "${output_path}/environment.yml" | ||
name: cuda_python | ||
channels: | ||
- defaults | ||
- conda-forge | ||
dependencies: | ||
- python=${python_version} | ||
- cython | ||
- pytest | ||
- numpy | ||
- setuptools | ||
- wheel | ||
- pip | ||
- cuda-version=${cuda_version} | ||
- cuda-cudart-static | ||
- cuda-driver-dev | ||
- cuda-cudart-dev | ||
- cuda-profiler-api | ||
- cuda-nvrtc-dev | ||
- cuda-nvcc | ||
- pip: | ||
- pytest-benchmark | ||
- pyclibrary | ||
- versioneer==0.29 | ||
- tomli; python_version < "3.11" | ||
- pywin32; sys_platform == 'win32' | ||
EOF | ||
} |