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

Get all dependencies from conda #21

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Get all dependencies from conda #21

merged 2 commits into from
Jan 10, 2025

Conversation

yousefmoazzam
Copy link
Contributor

@yousefmoazzam yousefmoazzam commented Jan 10, 2025

The cupy-cuda12x dependency is dragged in by httomo when doing pip install httomo-backends in the IRIS CI workflow, and it causes issues with the GPU on IRIS nodes not being detectable, see the following failed workflow: https://github.com/DiamondLightSource/httomo/actions/runs/12694511591/job/35384845408.

So, this PR is opting to get cupy from conda (we already get tomopy from conda anyway), and see if this allows the httomo IRIS CI to pass in this PR where the methods database info have been removed from httomo and uses httomo-backends for that info instead: DiamondLightSource/httomo#532

Also, specify the regular `cupy` package from PyPI rather than
`cupy-cuda12x`, to avoid httomo dragging in the `cupy-cuda12x`
dependency when doing `pip install httomo-backends` (which causes issues
in the CUDA container used for the IRIS CI).
@yousefmoazzam yousefmoazzam force-pushed the cupy-from-conda branch 2 times, most recently from a2c933c to 9d24ca8 Compare January 10, 2025 12:10
Some notes on this may be useful:
- It was found that specifying `astra-toolbox` as a conda dependency in
  addition to `cupy` was able to make the GPU detectable in the CUDA
  container used in the IRIS CI job. However, the first job was
  sometimes such that the GPU wasn't detected and needed to be rerun,
  but then the second job would have the GPU be detected, for some
  reason.
- Specifying all required packages as conda dependencies somehow got rid
  of the need to rerun the job, where the first job seemingly was
  consistent in having the GPU be detected.

The reason(s) for this behaviour are unknown, but this may be a good
enough workaround to enable `httomo` in the following PR to install
and use `httomo-backends` without issues in the IRIS CI:
DiamondLightSource/httomo#532.
@yousefmoazzam yousefmoazzam changed the title Get cupy dependency from conda Get all dependencies from conda Jan 10, 2025
@yousefmoazzam
Copy link
Contributor Author

See the message body of f707df0 for more details on why all dependencies were taken from conda

@yousefmoazzam yousefmoazzam merged commit 97bc317 into main Jan 10, 2025
2 checks passed
@yousefmoazzam yousefmoazzam deleted the cupy-from-conda branch January 10, 2025 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant