diff --git a/conda/README.org b/conda/README.org index 8334af7..84e5a39 100644 --- a/conda/README.org +++ b/conda/README.org @@ -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= +export cudatoolkit=11.2 +export MAX_JOBS= +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: diff --git a/conda/conda_build_config.yaml b/conda/conda_build_config.yaml index f6eb27f..5cf927c 100644 --- a/conda/conda_build_config.yaml +++ b/conda/conda_build_config.yaml @@ -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" diff --git a/conda/cuda-10.2.yaml b/conda/cuda-11.2.yaml similarity index 59% rename from conda/cuda-10.2.yaml rename to conda/cuda-11.2.yaml index b21a2f2..c1dbd5a 100644 --- a/conda/cuda-10.2.yaml +++ b/conda/cuda-11.2.yaml @@ -1,2 +1,2 @@ cudatoolkit: - - 10.2 + - 11.2 diff --git a/conda/cuda-11.1.yaml b/conda/cuda-11.7.yaml similarity index 59% rename from conda/cuda-11.1.yaml rename to conda/cuda-11.7.yaml index bf215d7..3690d08 100644 --- a/conda/cuda-11.1.yaml +++ b/conda/cuda-11.7.yaml @@ -1,2 +1,2 @@ cudatoolkit: - - 11.1 + - 11.7 diff --git a/conda/meta.yaml b/conda/meta.yaml index 4475ec2..e230bef 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -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: