Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vs2019 and drop setting CUDA_PATH #252

Merged
merged 9 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
c_compiler:
- vs2017
- vs2019
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -13,7 +13,7 @@ cudnn:
cutensor:
- '2'
cxx_compiler:
- vs2017
- vs2019
pin_run_as_build:
python:
min_pin: x.x
Expand Down
10 changes: 0 additions & 10 deletions recipe/activate.bat

This file was deleted.

8 changes: 0 additions & 8 deletions recipe/activate.sh

This file was deleted.

4 changes: 0 additions & 4 deletions recipe/conda_build_config.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions recipe/deactivate.bat

This file was deleted.

9 changes: 0 additions & 9 deletions recipe/deactivate.sh

This file was deleted.

12 changes: 1 addition & 11 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set name = "cupy" %}
{% set version = "13.0.0" %}
{% set sha256 = "2f04e7857f692a713360dc9c3b06709806ab8404fca39b5af9721c04a2979aae" %}
{% set build_num = 2 %}
{% set build_num = 3 %}

{% set target_name = "x86_64-linux" %} # [linux64]
{% set target_name = "ppc64le-linux" %} # [ppc64le]
Expand Down Expand Up @@ -102,16 +102,6 @@ outputs:
{{ PYTHON }} -m pip install . --no-deps -vv
- if errorlevel 1 exit 1 # [win]

# copy activate/deactivate scripts
- mkdir -p "${PREFIX}/etc/conda/activate.d" # [linux]
- cp "${RECIPE_DIR}/activate.sh" "${PREFIX}/etc/conda/activate.d/cupy_activate.sh" # [linux]
- mkdir -p "${PREFIX}/etc/conda/deactivate.d" # [linux]
- cp "${RECIPE_DIR}/deactivate.sh" "${PREFIX}/etc/conda/deactivate.d/cupy_deactivate.sh" # [linux]
- if not exist %PREFIX%\etc\conda\activate.d mkdir %PREFIX%\etc\conda\activate.d # [win]
- copy %RECIPE_DIR%\activate.bat %PREFIX%\etc\conda\activate.d\cupy_activate.bat # [win]
- if not exist %PREFIX%\etc\conda\deactivate.d mkdir %PREFIX%\etc\conda\deactivate.d # [win]
- copy %RECIPE_DIR%\deactivate.bat %PREFIX%\etc\conda\deactivate.d\cupy_deactivate.bat # [win]

# enable CuPy's preload mechanism
- mkdir -p "${SP_DIR}/cupy/.data/" # [linux]
- cp ${RECIPE_DIR}/preload_config/linux64_cuda{{ cuda_major }}_wheel.json ${SP_DIR}/cupy/.data/_wheel.json # [linux]
Expand Down
5 changes: 0 additions & 5 deletions recipe/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ def get_target_name():
out = f"{plat}-linux"
return out

# Check CUDA_PATH is set
cuda_path = os.environ.get('CUDA_PATH')
assert cuda_path is not None
print("CUDA_PATH:", cuda_path)

# check _wheel.json exists
# note that we don't rely on cupy.__file__ because we cannot import CuPy on Windows
pypaths = site.getsitepackages()
Expand Down