Skip to content

bump libparallelproj - #1798

Open
casperdcl wants to merge 1 commit into
masterfrom
bump-parallelproj
Open

casperdcl wants to merge 1 commit into
masterfrom
bump-parallelproj

Conversation

@casperdcl

Copy link
Copy Markdown
Collaborator

/cc @gschramm

@casperdcl casperdcl self-assigned this Dec 2, 2026
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@KrisThielemans

Copy link
Copy Markdown
Collaborator

Looks good. We're not running any CUDA tests though in CI. Will need someone to actually run the tests with CUDA. @MatteoNeelColombo ?

@KrisThielemans

Copy link
Copy Markdown
Collaborator

This is probably a good point to required parallelproj >=2 now (as we're not testing paralleproj 1 anyway)

if (PARALLELPROJ_VERSION VERSION_LESS 2.0)

@MatteoNeelColombo

Copy link
Copy Markdown
Contributor

I built this PR with libparallelproj 3.0.0 with CUDA (RTX 2080 SUPER, CUDA 12.9) and ran the tests:

  • ctest: all 73 pass
  • recon_test_pack run_test_simulate_and_recon.sh: all OK,
  • run_tests.sh: OK

@gschramm

gschramm commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

if needed, I can also run a test with cuda13 and libparallelproj 3.0 locally.

Is there a guide on how to build and which tests to run?
https://github.com/UCL/STIR/blob/master/.github/workflows/build-test.yml looks rather complicated.

@KrisThielemans

KrisThielemans commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

The CI is a complicated indeed due to the many options. The main difficulty really is to get dependencies installed, although they are pretty much all optional. But as you're using conda, and indeed want to test that here, we can use build_environment.yml. Otherwise, it's "standard" (i.e. far too complicated) CMake. The latest complication is due to RPATH handling, which I still don't quite know what good defaults are (if CMake can't decide what a good default is, then what chance do we have?). The following could work

git clone https://github.com/UCL/STIR
cd STIR
git switch bump-parallelproj
# MANUAL edit build_environment.yml to enable cuda
conda create env -f build_environment.yml
CMAKE_INSTALL_PREFIX=~/install
CONFIG=Release
mkdir -p build
cd build
cmake -G Ninja -S .. -B . --DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX} \
    -DCMAKE_BUILD_TYPE=${CONFIG} \
    -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE \
    -DCMAKE_INSTALL_RPATH:PATH=${CMAKE_INSTALL_PREFIX}/lib
cmake --build . --config ${CONFIG} --target install
ctest --output-on-failure -C ${CONFIG}
cd ../recon_test_pack
./run_test_simulate_and_recon.sh
cd ../src
python -m pytest .

There are more recon_test_pack tests, but they don't use parallelproj.

I have no idea how to avoid the manual edits of build_environment.yml. Possibly pixi would do that, but in my very limited experience, it gives me another 1-2GB of cruft.

CMake presets could reduce the number of lines a bit, so maybe we should introduce that.

Recommendations welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants