-
Notifications
You must be signed in to change notification settings - Fork 20
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
Build example 3 if CUDA enabled #222
Conversation
6cc94c8
to
9d4aa86
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, agree with this.
However, a comment that I have seen before elsewhere - it would be good to avoid "double negatives" - the guard for running integration tests is based on the unit test flag. This requires some mental gymnastics (unless it's just me) and would be a problem if we wanted to add a third set of subtests for some reason in future.
I wonder if moving to having RUN_UNIT
and RUN_INTEGRATION
variables that default to true
and are checked against for running the tests, and setting them to false
where necessary in setup would be preferable?
Opened #259. |
2aa458f
to
5b7f17d
Compare
in example 3 If the net is saved from a particular cuda device it will be re-loaded back to that cuda device. This causes issues if we are placing the tensors on a different device, as is the case in the multigpu inference. To fix this explicitly move the loaded net to the device. We should look a little deeper about how this works on the Fortran/C++ side and verify where things are saved from/loaded to.
5b7f17d
to
ef07fca
Compare
@jwallwork23 rebased so this can go into maion with #258 being re-targeted. Happy to approve once you have a quick glance over to check you are happy with the rebase. |
LGTM, thanks @jatkinson1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed, tested, amended, and rebased.
Approving now @jwallwork23 and happy for you to merge in.
Closes #208.
Closes #227.
This PR does several things:
run_test_suite.sh
if it has been built.pt2ts.py
script in example 3.multigpu
, for consistency with the other examples.I've attached the build script that I used to get this working locally:
build.sh.txt