Skip to content

Conversation

@SCiarella
Copy link
Collaborator

@SCiarella SCiarella commented Dec 16, 2025

Closes issue #23

This PR exposes device and dtype such that they can be controlled and set externally by the user. This is particularly relevant for running diffwofost on GPU by setting device="cuda". There are example of this in the notebooks and in the documentation.

The tests have been update by adding a new @pytest.fixture that checks if a GPU is available, and if so, it re-runs the most important tests on the GPU a second time. Notice that GitHub actions do not provide GPU access (for free), so I have been using my local hardware to test the code.


Notice that without finalizing the Engine, the GPU device could be slower than the CPU, due to temporary fixes like the use of deepcopy in the TestEngine.

@SCiarella SCiarella marked this pull request as draft December 16, 2025 11:59
@SCiarella SCiarella marked this pull request as ready for review December 19, 2025 09:37
@sonarqubecloud
Copy link

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.

2 participants