|
51 | 51 | ${{ env.create_venv }} |
52 | 52 | ${{ env.activate_venv }} |
53 | 53 | python -m pip install --upgrade pip |
54 | | - python -m pip install -e .[test] |
55 | | -
|
56 | | - - name: Install pynfft |
57 | | - if: ${{ matrix.backend == 'pynfft' || env.ref_backend == 'pynfft' }} |
58 | | - shell: bash |
59 | | - run: | |
60 | | - ${{ env.activate_venv }} |
61 | | - python -m pip install "pynfft2>=1.4.3" |
62 | | -
|
63 | | - - name: Install pynufft |
64 | | - if: ${{ matrix.backend == 'pynufft-cpu' || env.ref_backend == 'pynufft-cpu' }} |
65 | | - run: | |
66 | | - ${{ env.activate_venv }} |
67 | | - python -m pip install pynufft |
68 | | -
|
69 | | - - name: Install finufft |
70 | | - if: ${{ matrix.backend == 'finufft' || env.ref_backend == 'finufft'}} |
71 | | - shell: bash |
72 | | - run: | |
73 | | - ${{ env.activate_venv }} |
74 | | - python -m pip install finufft |
75 | | -
|
76 | | - - name: Install Sigpy |
77 | | - if: ${{ matrix.backend == 'sigpy' || env.ref_backend == 'sigpy'}} |
78 | | - shell: bash |
79 | | - run: | |
80 | | - ${{ env.activate_venv }} |
81 | | - python -m pip install sigpy |
82 | | -
|
83 | | - - name: Install BART |
| 54 | + python -m pip install -e .[test,${{ env.ref_backend }},${{ matrix.backend }}] |
| 55 | + |
| 56 | + - name: Install BART if needed |
84 | 57 | if: ${{ matrix.backend == 'bart' || env.ref_backend == 'bart'}} |
85 | 58 | shell: bash |
86 | 59 | run: | |
|
92 | 65 | make |
93 | 66 | echo $PWD >> $GITHUB_PATH |
94 | 67 |
|
95 | | - - name: Install torchkbnufft-cpu |
96 | | - if: ${{ matrix.backend == 'torchkbnufft-cpu' || env.ref_backend == 'torchkbnufft-cpu'}} |
97 | | - run: | |
98 | | - ${{ env.activate_venv }} |
99 | | - python -m pip install torchkbnufft |
100 | | -
|
101 | | -
|
102 | 68 | - name: Run Tests |
103 | 69 | shell: bash |
104 | 70 | run: | |
@@ -127,33 +93,22 @@ jobs: |
127 | 93 | - name: Install mri-nufft and finufft |
128 | 94 | shell: bash |
129 | 95 | run: | |
130 | | - ${{ env.create_venv }} |
131 | | - ${{ env.activate_venv }} |
132 | | - python -m pip install --upgrade pip wheel |
133 | | - python -m pip install -e .[test] |
134 | | - python -m pip install cupy-cuda12x finufft "numpy<2.0" |
| 96 | + cd $RUNNER_WORKSPACE |
| 97 | + python --version |
| 98 | + python -m venv venv |
| 99 | + source $RUNNER_WORKSPACE/venv/bin/activate |
| 100 | + pip install --upgrade pip wheel |
| 101 | + pip install -e mri-nufft[test,finufft] |
135 | 102 |
|
136 | | - - name: Install torch with CUDA 12.1 |
137 | | - shell: bash |
138 | | - if: ${{ matrix.backend != 'tensorflow'}} |
139 | | - run: | |
140 | | - ${{ env.activate_venv }} |
141 | | - ${{ env.setup_cuda }} |
142 | | - python -m pip install torch |
143 | 103 |
|
144 | 104 | - name: Install backend |
145 | 105 | shell: bash |
146 | 106 | run: | |
147 | | - ${{ env.activate_venv }} |
148 | | - if [[ ${{ matrix.backend }} == "torchkbnufft-gpu" ]]; then |
149 | | - python -m pip install torchkbnufft |
150 | | - elif [[ ${{ matrix.backend }} == "tensorflow" ]]; then |
151 | | - python -m pip install tensorflow-mri==0.21.0 tensorflow-probability==0.17.0 tensorflow-io==0.27.0 matplotlib==3.7 |
152 | | - elif [[ ${{ matrix.backend }} == "cufinufft" ]]; then |
153 | | - python -m pip install "cufinufft<2.3" |
154 | | - else |
155 | | - python -m pip install ${{ matrix.backend }} |
156 | | - fi |
| 107 | + source $RUNNER_WORKSPACE/venv/bin/activate |
| 108 | + export CUDA_BIN_PATH=/usr/local/cuda-12.4/ |
| 109 | + export PATH=/usr/local/cuda-12.4/bin/:${PATH} |
| 110 | + export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64/:${LD_LIBRARY_PATH} |
| 111 | + pip install -e .[${{ matrix.backend }},autodiff] |
157 | 112 |
|
158 | 113 | - name: Run Tests |
159 | 114 | shell: bash |
@@ -270,13 +225,14 @@ jobs: |
270 | 225 | python -m pip install -e .[extra,test,dev] |
271 | 226 | python -m pip install finufft pooch brainweb-dl torch fastmri |
272 | 227 |
|
273 | | - - name: Install GPU related interfaces |
| 228 | + - name: Install Python deps |
| 229 | + shell: bash |
274 | 230 | run: | |
275 | 231 | ${{ env.activate_venv }} |
276 | 232 | ${{ env.setup_cuda }} |
277 | | - pip install cupy-cuda12x torch |
278 | | - python -m pip install gpuNUFFT "cufinufft<2.3" sigpy scikit-image fastmri |
279 | | -
|
| 233 | + python -m pip install --upgrade pip |
| 234 | + python -m pip install -e .[test,dev,finufft,cufinufft,gpuNUFFT,sigpy,smaps,autodiff,doc] |
| 235 | + |
280 | 236 | - name: Run examples |
281 | 237 | shell: bash |
282 | 238 | run: | |
@@ -377,23 +333,22 @@ jobs: |
377 | 333 | uses: actions/setup-python@v5 |
378 | 334 | with: |
379 | 335 | python-version: "3.10" |
380 | | - |
| 336 | + |
| 337 | + - name: Point to CUDA 12.4 |
| 338 | + run: | |
| 339 | + export CUDA_BIN_PATH=/usr/local/cuda-12.4/ |
| 340 | + export PATH=/usr/local/cuda-12.4/bin/:${PATH} |
| 341 | + export LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64/:${LD_LIBRARY_PATH} |
| 342 | + |
381 | 343 | - name: Install dependencies |
382 | 344 | shell: bash -l {0} |
383 | 345 | run: | |
384 | 346 | ${{ env.create_venv }} |
385 | 347 | ${{ env.activate_venv }} |
386 | 348 | python -m pip install --upgrade pip |
387 | | - python -m pip install .[doc,extra] |
388 | | - python -m pip install finufft |
389 | | -
|
390 | | - - name: Install GPU related interfaces |
391 | | - run: | |
392 | | - ${{ env.activate_venv }} |
393 | | - ${{ env.setup_cuda }} |
394 | | - pip install cupy-cuda12x torch |
395 | | - python -m pip install gpuNUFFT "cufinufft<2.3" sigpy scikit-image fastmri |
396 | | -
|
| 349 | + python -m pip install .[doc,finufft,autodiff,gpunufft,cufinufft,sigpy,extra] fastmri |
| 350 | + |
| 351 | + |
397 | 352 | - name: Build API documentation |
398 | 353 | run: | |
399 | 354 | ${{ env.activate_venv }} |
|
0 commit comments