-
Notifications
You must be signed in to change notification settings - Fork 22
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
EnsembleConfig::devices in Swig/python. #682
Comments
19 tasks
swig has a Found in |
Have fixed this, PR coming soon.
|
Robadob
added a commit
that referenced
this issue
Dec 9, 2021
This is a set, so wasn't being handled by Swig by default. Closes #682
mondus
pushed a commit
that referenced
this issue
Dec 14, 2021
This is a set, so wasn't being handled by Swig by default. Closes #682
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
CUDAEnsemble::EnsembleConfig::devices
is astd::set<int>
.This does not appear to be well-wrapped by swig currently, so is not (obviously) usable from python (other than via the CLI)
The current command line argument takes a comma separated string of non-negative integers, which is parsed into a
std::set
.Although uniqueness is useful, it might be worth using an order-preserving data structure (although probably not neccesary). This might also help if Swig is not great with sets, as we know it's usable with vectors. It could then be converted to a set at time of use.
The text was updated successfully, but these errors were encountered: