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

Update conda package creation files #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions conda/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,29 @@ Check https://download.pytorch.com/whl/torch_stable.html to see all installable
versions.


* How to build locally
As of 2023-02-23, the most recent version of cudatoolkit-dev on conda-forge is
11.6.0. It would not compile, with more recent versions of gcc. Version 11.6.2
or later would solve the problem, but none of them is available.
Moreover, PyTorch 1.13 was compiled against cuda 11.2. Thus, we prefer to stick
to this version for the moment.
Some of these steps could be automated, but for now they are simple enough.

#+begin_src bash
conda create -n compile_msd python=3.9 conda-build anaconda-client
conda activate compile_msd
conda install cudatoolkit-dev=11.2

export CUDA_HOME=<your_env_path>
export cudatoolkit=11.2
export MAX_JOBS=<your_CPU_count>
export TORCH_CUDA_ARCH_LIST="5.0 6.0 7.0 7.5 8.0 8.6+PTX"

conda build .
#+end_src



* How to build using docker

From the project root directory execute:
Expand Down
7 changes: 4 additions & 3 deletions conda/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
c_compiler_version: # [linux]
- 7.3 # [linux]
- 9.5 # [linux]
cxx_compiler_version: # [linux]
- 7.3 # [linux]
- 9.5 # [linux]
pytorch:
- 1.8
- 1.13
python:
- 3.7
- 3.8
- 3.9
- 3.10
ccache_method: "mklink"
2 changes: 1 addition & 1 deletion conda/cuda-10.2.yaml → conda/cuda-11.2.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cudatoolkit:
- 10.2
- 11.2
2 changes: 1 addition & 1 deletion conda/cuda-11.1.yaml → conda/cuda-11.7.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cudatoolkit:
- 11.1
- 11.7
2 changes: 2 additions & 0 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ build:
# Used to increase the number of concurrent compilations in the ninja build
# step.
- MAX_JOBS
# Used to select the cuda version
- cudatoolkit

requirements:
build:
Expand Down