-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Runtime OpenCL device selection, allow seed=0 and fix allow-undefined user_header bug #954
Runtime OpenCL device selection, allow seed=0 and fix allow-undefined user_header bug #954
Conversation
…time-opencl-device-selection
@@ -29,7 +29,7 @@ CXXFLAGS_PROGRAM += -include-pch $(STAN)src/stan/model/model_header$(STAN_FLAGS) | |||
$(STAN_TARGETS) examples/bernoulli/bernoulli$(EXE) $(patsubst %.stan,%$(EXE),$(wildcard src/test/test-models/*.stan)) : %$(EXE) : $(STAN)src/stan/model/model_header$(STAN_FLAGS).hpp.gch | |||
endif | |||
|
|||
ifneq ($(findstring allow_undefined,$(STANCFLAGS)),) | |||
ifneq ($(findstring allow_undefined,$(STANCFLAGS))$(findstring allow-undefined,$(STANCFLAGS)),) |
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.
This is a minor fix for #953
@@ -25,7 +25,7 @@ class arg_seed : public int_argument { | |||
.total_milliseconds(); | |||
} | |||
|
|||
bool is_valid(int value) { return value > 0 || value == _default_value; } | |||
bool is_valid(int value) { return value >= 0 || value == _default_value; } |
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.
The changes to this file is a fix for #941
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
Jenkins Console Log Machine informationProductName: Mac OS X ProductVersion: 10.11.6 BuildVersion: 15G22010CPU: G++: Clang: |
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.
lgtm!
Summary:
Fixes one part of #825
Fixes #941
Fixes #953
The main part of this PR is allowing runtime selection of OpenCL devices.
Specifying only platform or only device IDs will print
Using opencl args when the model was not compiled with STAN_OPENCL will print
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Rok Češnovar
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: