getkeops / keops

KErnel OPerationS, on CPUs and GPUs, with autodiff and without memory overflows
https://www.kernel-operations.io
MIT License
1.04k stars 64 forks source link

Improving Jenkinsfile regarding PyKeOps to run tests in dedicated Python environments #230

Closed gdurif closed 2 years ago

gdurif commented 2 years ago

Objective

Note (2022/03/14): WIP, not ready to merge (Jenkinsfile is being improved by steps)

gdurif commented 2 years ago

@bcharlier @joanglaunes I am trying to improve the test setup (through specific extra_requires in pykeops/setup.py combined with a new pytest.sh script).

I get the following error on oban (c.f. https://ci.inria.fr/keops/blue/organizations/jenkins/KeOps_ci/detail/PR-230/10/pipeline/16):

  NVIDIA A10 with CUDA capability sm_86 is not compatible with the current PyTorch installation.

  The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70.

  If you want to use the NVIDIA A10 GPU with PyTorch, please check the instructions at https://pytorch.org/get-started/locally/

Do you have any idea how to proprely install torch on oban?

joanglaunes commented 2 years ago

Hi @gdurif , I don't know if this can help you, but about PyTorch, I have installed it on oban through conda with the command conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

gdurif commented 2 years ago

@joanglaunes Here is the solution from pytorch page (and thanks to @bcharlier) with pip and cuda 11.3:

pip3 install torch==1.11.0+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
gdurif commented 2 years ago

Test are passing, I am merging this :smiley: