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

gpu setup [second stage] #720

Merged
merged 169 commits into from
May 1, 2018
Merged
Changes from 1 commit
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
a9d537c
For compiling the gpu code, kernels, and getting GPU hardware info
SteveBronder Jan 9, 2018
3687c65
updating make options
syclik Jan 22, 2018
6084309
adding GPU config to .travis.yml
syclik Jan 22, 2018
79f2c6d
Updating some of the make stuff
syclik Jan 26, 2018
a3100ad
updating travis
syclik Jan 26, 2018
e064a61
updating header guard
syclik Jan 26, 2018
6696e6d
updating member variable name
syclik Jan 26, 2018
e43e524
Update to remove directly writing to stream with exit, now throws dom…
SteveBronder Jan 27, 2018
db6b69d
add setupOpenCL function to jenkins
SteveBronder Jan 27, 2018
d6420dc
forgot ()
SteveBronder Jan 27, 2018
67e4a6d
Jenkins
SteveBronder Jan 27, 2018
9cccecb
...
SteveBronder Jan 27, 2018
3b58f15
Change STAN_GPU flag to STN_OPENCL flag
SteveBronder Jan 27, 2018
33104fe
Jenkins: whoopsadasialiano
SteveBronder Jan 27, 2018
8959356
ignore opencl test on travis
SteveBronder Jan 27, 2018
a7f7a2a
extra space in jenkinsfile
SteveBronder Jan 27, 2018
8581c17
Removed extra STAN_OPENCL from unit test stage, moved GPU CXX flags t…
SteveBronder Jan 27, 2018
4ec7c35
forgot to add gtest header to check_opencl test
SteveBronder Jan 27, 2018
dbda9de
FIXME: This adds a LDLIBS_OPENCL flag to the tests recipe, which shou…
SteveBronder Jan 30, 2018
0699dce
Add STAN_OPENCL to test-headers
SteveBronder Jan 30, 2018
af27abe
Cleanup tests
SteveBronder Jan 30, 2018
f0cbd6c
Fixing obscure OpenCL on mac error
SteveBronder Jan 30, 2018
ea5b4ce
...
SteveBronder Jan 30, 2018
7e7b0fa
reverting whitepsace changes back to develop
syclik Jan 30, 2018
df7a971
Updating Jenkisnfile with new jobs
syclik Jan 31, 2018
33dccdb
Renaming stan/math/prim/mat/fun/ocl_gpu.hpp to stan/math/gpu/opencl_c…
syclik Jan 31, 2018
13f4ea7
renaming max_workgroup_size
syclik Jan 31, 2018
2821fdc
adding test for opencl_context
syclik Jan 31, 2018
47ae02e
changes to opencl_context_rewrite
SteveBronder Feb 4, 2018
0bedc2b
Merge remote-tracking branch 'origin/develop' into gpu_setup
SteveBronder Feb 6, 2018
b6a2509
Merge remote-tracking branch 'origin/develop' into opencl_context_rew…
SteveBronder Feb 6, 2018
2d3beef
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Feb 6, 2018
88c5791
Merge branch 'gpu_setup' into opencl_context_rewrite
SteveBronder Feb 6, 2018
f908f05
For compiling the gpu code, kernels, and getting GPU hardware info
SteveBronder Jan 9, 2018
bf7b37b
updating make options
syclik Jan 22, 2018
929d70a
adding GPU config to .travis.yml
syclik Jan 22, 2018
653cca6
Updating some of the make stuff
syclik Jan 26, 2018
6ef93ae
updating travis
syclik Jan 26, 2018
1b14e70
updating header guard
syclik Jan 26, 2018
f8b72b5
updating member variable name
syclik Jan 26, 2018
7762106
Update to remove directly writing to stream with exit, now throws dom…
SteveBronder Jan 27, 2018
abf7682
add setupOpenCL function to jenkins
SteveBronder Jan 27, 2018
d4ebfe4
FIXME: This adds a LDLIBS_OPENCL flag to the tests recipe, which shou…
SteveBronder Jan 30, 2018
aab6f34
Add STAN_OPENCL to test-headers
SteveBronder Jan 30, 2018
5768d71
reverting whitepsace changes back to develop
syclik Jan 30, 2018
af1ad72
Updating Jenkisnfile with new jobs
syclik Jan 31, 2018
9e4817a
Renaming stan/math/prim/mat/fun/ocl_gpu.hpp to stan/math/gpu/opencl_c…
syclik Jan 31, 2018
ffff6cb
renaming max_workgroup_size
syclik Jan 31, 2018
726dec1
adding test for opencl_context
syclik Jan 31, 2018
6f3370c
Added GPU filter to Jenkins
SteveBronder Feb 6, 2018
75b5b4d
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Feb 6, 2018
4333430
Move GPU unit for now to before other tests in jenkins
SteveBronder Feb 9, 2018
4d16978
change return of max_workgroup_size to size_t
SteveBronder Feb 9, 2018
384643d
...
SteveBronder Feb 9, 2018
96865ec
...
SteveBronder Feb 9, 2018
adabe7c
...
SteveBronder Feb 9, 2018
7ed08ee
FIXME: Remove try around second runTests.py
SteveBronder Feb 9, 2018
53e2bad
nvm
SteveBronder Feb 9, 2018
079ddd8
add GPU stuff to normal tests, remove special things for gpu
SteveBronder Feb 9, 2018
9b0bad3
...
SteveBronder Feb 9, 2018
62e990c
set local from int to size_t
SteveBronder Feb 9, 2018
e3a089f
[Jenkins] auto-formatting by clang-format version 5.0.1-svn319952-1~e…
stan-buildbot Feb 9, 2018
9f99857
merge gpu_setup into opencl_context_rewrite
SteveBronder Feb 9, 2018
0f8b6a2
Merge branch 'gpu_setup' into opencl_context_rewrite
SteveBronder Feb 9, 2018
d80904d
...
SteveBronder Feb 9, 2018
9f31b8c
Merge branch 'gpu_setup' into opencl_context_rewrite
SteveBronder Feb 11, 2018
49a1182
...
SteveBronder Feb 13, 2018
691878f
[Jenkins] auto-formatting by clang-format version 5.0.1-svn319952-1~e…
stan-buildbot Feb 13, 2018
47bb466
move stuff from anon namespace to opencl_context class
SteveBronder Feb 13, 2018
5d4c1b6
...
SteveBronder Feb 13, 2018
7dd86f2
...
SteveBronder Feb 13, 2018
7f2190e
[Jenkins] auto-formatting by clang-format version 5.0.1-svn319952-1~e…
stan-buildbot Feb 13, 2018
aa18939
removed getters
SteveBronder Feb 13, 2018
c8d9b15
move get_kernel and compile_group class members to outside the class …
SteveBronder Feb 13, 2018
272e657
set agent for unit tests to gelman group mac.
SteveBronder Feb 13, 2018
1bd93c5
Merge branch 'gpu_setup' of https://github.com/rok-cesnovar/math into…
SteveBronder Feb 13, 2018
514c39f
┬──┬◡ノ(° -°ノ)
SteveBronder Feb 13, 2018
1065a59
Add logic_error like stan's domain_error. Turned all std::strings int…
SteveBronder Feb 14, 2018
83f9d04
Add system_error func for stan like domain_func in scale
SteveBronder Feb 15, 2018
2d9dc6b
...
SteveBronder Feb 15, 2018
c407589
...
SteveBronder Feb 15, 2018
c0a1a46
added the doxygen comments for the opencl_context.hpp
Feb 15, 2018
07aafbf
add logic error
SteveBronder Feb 16, 2018
3b4b3a9
Merge branch 'opencl_context_rewrite' of https://github.com/rok-cesno…
SteveBronder Feb 16, 2018
c8bd5a4
adding doc
syclik Feb 16, 2018
3c10350
commented out most of the code, starting to build up the opencl_conte…
syclik Feb 16, 2018
5daf423
updating command_queue
syclik Feb 16, 2018
9853757
singleton rewrite
SteveBronder Feb 21, 2018
a91c915
Remove kernel funcs
SteveBronder Feb 21, 2018
6a86a3b
Add dummy kernel compilation
SteveBronder Feb 21, 2018
65ef247
Add macro for the number of preferred device
SteveBronder Feb 21, 2018
e62a435
remove fixme about device number
SteveBronder Feb 21, 2018
9d91383
Add system error
SteveBronder Feb 22, 2018
f3763fe
...
SteveBronder Feb 22, 2018
a7cffde
Add system error to check_opencl failure codes func
SteveBronder Feb 26, 2018
783f03a
clang-format
SteveBronder Feb 26, 2018
f8a07ba
update with master
SteveBronder Feb 28, 2018
b7cb405
Added kernel init and compile functions
SteveBronder Feb 28, 2018
1420847
merge to develop
SteveBronder Feb 28, 2018
6675705
made kernel initialization and kernel compilation functions private m…
SteveBronder Mar 2, 2018
bd201cf
fixing an issue with the merge to develop
syclik Mar 2, 2018
69fd563
updating all the makefiles
syclik Mar 2, 2018
381e5e6
Merge branch 'gpu_setup' into opencl_context_rewrite
SteveBronder Mar 3, 2018
3b8eae0
remove kernels and align Jenkins file
SteveBronder Mar 3, 2018
baac8e4
fixing makefiles
syclik Mar 4, 2018
10bf682
remove logic error and unneeded check_opencl function
SteveBronder Mar 4, 2018
c52ec37
Merge branch 'opencl_context_rewrite' of https://github.com/rok-cesno…
SteveBronder Mar 4, 2018
7a235f6
Fix the broken opencl error test
SteveBronder Mar 5, 2018
8a461fb
Modify jenkinsfile to run GPU tests seperately
SteveBronder Mar 5, 2018
b7b188e
Add some docs, make doxygen compile GPU docs
SteveBronder Mar 10, 2018
16b9393
Add @brief to get_kernel func
SteveBronder Mar 10, 2018
3ef2885
...
SteveBronder Mar 10, 2018
f0642eb
squash previous commit
SteveBronder Mar 10, 2018
3ef92eb
Add more documentation
SteveBronder Mar 14, 2018
c09b741
Update docs, messing around with kernel_source
SteveBronder Mar 14, 2018
ecccea7
Rewriting kernel compilation to just use a single map instead of thre…
SteveBronder Mar 14, 2018
80e72d0
Creating a better description function, removed mulitple maps for ker…
SteveBronder Mar 14, 2018
e11e3c5
Update to Dan's requests
SteveBronder Mar 15, 2018
0bb9de0
Move kernel to private
SteveBronder Mar 15, 2018
cddf894
Merge remote-tracking branch 'upstream/develop' into gpu_setup
SteveBronder Mar 15, 2018
47fd5d9
Merge remote-tracking branch 'upstream/develop' into opencl_context_r…
SteveBronder Mar 15, 2018
e36c820
Merge branch 'gpu_setup' into opencl_context_rewrite
SteveBronder Mar 15, 2018
596a544
Fix makefile to add OPENCL flags
SteveBronder Mar 15, 2018
ad6c0f9
Merge branch 'opencl_context_rewrite' of https://github.com/rok-cesno…
SteveBronder Mar 15, 2018
b7609d3
squish me: remove extra gpu functions
SteveBronder Mar 15, 2018
7e1c194
squish me: remove doxygen-make from other PR
SteveBronder Mar 15, 2018
64e31f3
Fix spelling
SteveBronder Mar 15, 2018
a4078ce
Fix spelling
SteveBronder Mar 16, 2018
5fe37aa
Revert "Fix spelling"
SteveBronder Mar 16, 2018
c6b6a2f
removing the global static variable
syclik Mar 16, 2018
298d36a
Merge branch 'opencl_context_rewrite' of https://github.com/rok-cesno…
SteveBronder Mar 16, 2018
99993e4
remove getInstance() and have opencl_context made with default constr…
SteveBronder Mar 19, 2018
1a414d5
remove copy/delete methods
SteveBronder Mar 19, 2018
80762c2
Change so that there is a singleton base class and then an class that…
SteveBronder Mar 20, 2018
8012717
Merge pull request #1 from rok-cesnovar/opencl_context_rewrite
SteveBronder Mar 30, 2018
84d747c
Merge commit '611f982acb1bc433192ba9cafe5b4cf9e798b966' into HEAD
yashikno Mar 30, 2018
105f059
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Mar 30, 2018
ebad3f0
fix cpplint
SteveBronder Mar 30, 2018
f639275
include <vector> in unit tests for OpenCL
SteveBronder Mar 30, 2018
c127719
Update check_ocl_error so that it only takes in the opencl error
SteveBronder Mar 30, 2018
0943869
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Mar 30, 2018
715d85f
Added LDLIBS_OPENCL to multiple_translation_units_test2
SteveBronder Mar 30, 2018
8f976c2
Deleted kernel test, remove /mat from check_opencl_test, remove debug
SteveBronder Mar 30, 2018
c2c80b3
Move GPU unit tests to their own stage
SteveBronder Mar 30, 2018
db5f606
Merge remote-tracking branch 'upstream/develop' into gpu_setup
SteveBronder Apr 5, 2018
de154da
fix name of check_ocl_error to check_opencl_error
SteveBronder Apr 5, 2018
6d9a416
Merge branch 'develop' into gpu_setup
SteveBronder Apr 7, 2018
afafb90
Change LDLIBS_OPENCL to LDFLAGS_OPENCL
SteveBronder Apr 7, 2018
007b2b6
fix sqrt to std::sqrt
SteveBronder Apr 7, 2018
04e09b0
Fix tests so they match up with Jenkins Mac Hardware
SteveBronder Apr 7, 2018
f82f009
minor requested changes
rok-cesnovar Apr 12, 2018
4c89910
Set the OpenCL device and platform IDs
SteveBronder Apr 13, 2018
94dd34d
Merge remote-tracking branch 'upstream/develop' into gpu_setup
SteveBronder Apr 13, 2018
b3d3c88
Forgot new lines matter in makefile
SteveBronder Apr 13, 2018
e37ae20
Merge branch 'gpu_setup' of git://github.com/rok-cesnovar/math into r…
Apr 14, 2018
a455286
fix for platforms with no GPU devices, device test only checks the se…
rok-cesnovar Apr 20, 2018
1ad9676
Merge commit 'e6e2adb13b167838ae14e64e60dc5ebdfeed0eaf' into HEAD
yashikno Apr 20, 2018
b51161a
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Apr 20, 2018
697070e
handling cases of wrong platform/device ID
rok-cesnovar Apr 21, 2018
b0b8f97
Merge commit 'f33c02e7c22c0125c0be510db9d8e681abb02f65' into HEAD
yashikno Apr 21, 2018
bb1aad0
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
stan-buildbot Apr 21, 2018
4323300
handling other errors in capabilities()
rok-cesnovar Apr 21, 2018
c5e365e
cpplint cleanup
rok-cesnovar Apr 21, 2018
a25d9c6
storing kernels on compile to .kernels instead of kernels(), added tests
rok-cesnovar Apr 25, 2018
312a84a
Merge commit '0665998b10607511712267bcb90c89fdd8cd7087' into HEAD
yashikno Apr 25, 2018
672fffa
[Jenkins] auto-formatting by clang-format version 5.0.2-svn328729-1~e…
stan-buildbot Apr 25, 2018
6c506e7
put OPENCL linker flags last
Apr 29, 2018
77774a0
remove binary object from lib/gtest_*/src
bgoodri Apr 29, 2018
3b00f74
Merge remote-tracking branch 'upstream/rok-cesnovar-gpu_setup' into g…
SteveBronder May 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
…stable/2017-11-14)
  • Loading branch information
stan-buildbot committed Apr 20, 2018
commit b51161a61718edcc10c801cf723fad9eaf437008
19 changes: 10 additions & 9 deletions stan/math/gpu/opencl_context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,12 @@ class opencl_context {

msg << "\tDevice " << device_id++ << ": "
<< "\n";
msg << "\t\tDevice Name: " <<
device.getInfo<CL_DEVICE_NAME>() << "\n";
msg << "\t\tDevice Type: " <<
device.getInfo<CL_DEVICE_TYPE>() << "\n";
msg << "\t\tDevice Vendor: " <<
device.getInfo<CL_DEVICE_VENDOR>() << "\n";
msg << "\t\tDevice Name: " << device.getInfo<CL_DEVICE_NAME>()
<< "\n";
msg << "\t\tDevice Type: " << device.getInfo<CL_DEVICE_TYPE>()
<< "\n";
msg << "\t\tDevice Vendor: " << device.getInfo<CL_DEVICE_VENDOR>()
<< "\n";
msg << "\t\tDevice Max Compute Units: "
<< device.getInfo<CL_DEVICE_MAX_COMPUTE_UNITS>() << "\n";
msg << "\t\tDevice Global Memory: "
Expand All @@ -328,11 +328,12 @@ class opencl_context {
<< device.getInfo<CL_DEVICE_MAX_MEM_ALLOC_SIZE>() << "\n";
msg << "\t\tDevice Local Memory: "
<< device.getInfo<CL_DEVICE_LOCAL_MEM_SIZE>() << "\n";
msg << "\t\tDevice Available: " <<
device.getInfo<CL_DEVICE_AVAILABLE>() << "\n";
msg << "\t\tDevice Available: "
<< device.getInfo<CL_DEVICE_AVAILABLE>() << "\n";
}
} catch (const cl::Error& e) {
msg << "\tno GPU devices in the specified platform" << "\n";
msg << "\tno GPU devices in the specified platform"
<< "\n";
}
}
return msg.str();
Expand Down