Paul Fultz II
d568f78bdd
cherrypick from master branch
...
75a5088446
727c9f77d8
These are needed by MIOpen and rocBLAS.
Add __HIP_PLATFORM_HCC__ to hip::host target (#2029 )
Fix hip-config.cmake for CMAKE_CXX_COMPILER=g++ (#2035 )
* Fix hip-config.cmake for CMAKE_CXX_COMPILER=g++
* Add inlineall option to hip::device in hip-config.cmake
Change-Id: Ib51f82d0b9e38d2137df65c940592413e22ba07a
2020-04-24 09:32:02 -04:00
Paul Fultz II
727c9f77d8
Add __HIP_PLATFORM_HCC__ to hip::host target ( #2029 )
2020-04-23 21:51:02 +05:30
Paul Fultz II
c8bcf28320
Fix path for hip-clang when using hipcc ( #1961 )
...
* Fix path for hip-clang when using hipcc
* Fix typo
* Update regex
Change-Id: I31bbee2e70d58b89191f970f5c6ae7e1c8b40900
2020-04-02 12:09:31 -04:00
Paul Fultz II
2c246dabfe
Add missing flags for hip::device target on hip-clang ( #1230 )
...
This adds the missing compilation flags to hip::device so it can compile with hip-clang compiler.
Change-Id: Ie2b30ea606bfca385a0e84ae03ee0a8d828ad16a
2020-04-02 12:09:03 -04:00
Paul Fultz II
855209abed
Fix path for hip-clang when using hipcc ( #1961 )
...
* Fix path for hip-clang when using hipcc
* Fix typo
* Update regex
2020-03-25 14:42:48 -07:00
Paul Fultz II
58058091ad
Add missing flags for hip::device target on hip-clang ( #1230 )
...
This adds the missing compilation flags to hip::device so it can compile with hip-clang compiler.
2020-03-18 11:18:58 +05:30
Paul
26bb6a97a7
Revert "Try to initialize the primary context on cuda"
...
This reverts commit fd98514113 .
2020-02-11 12:34:11 -06:00
Paul
e82e3c2339
Revert "Push ctx to the stack as current"
...
This reverts commit bff8cbe950 .
2020-02-11 12:34:10 -06:00
Paul
bff8cbe950
Push ctx to the stack as current
2020-02-11 11:46:29 -06:00
Paul
fd98514113
Try to initialize the primary context on cuda
2020-02-11 11:26:24 -06:00
Paul
b9f97ec3fe
Skip test on cuda
2020-02-10 17:23:58 -06:00
Paul
30e8dfdd86
Reduce threads on cuda
2020-02-10 16:37:34 -06:00
Paul
2d9a2d866c
Set context on each thread
2020-02-10 16:01:53 -06:00
Paul
e5d077f70e
Create context for cuda
2020-02-10 15:52:34 -06:00
Paul
29a257d79b
Add setDevice to try and initialize the context on cuda
2020-02-10 13:37:45 -06:00
Paul
d77ede7015
Output on failure
2020-02-07 10:13:28 -06:00
Paul
8e494cfce8
Make threads a multiple of hardware concurrency
2020-02-06 16:23:29 -06:00
Paul
5361424702
Add multithreaded test
2020-02-06 16:21:40 -06:00
Paul
85560d38b1
Assign the iterator
2020-02-06 12:15:29 -06:00
Paul
f34f96350c
Fix compile error
2020-02-06 12:04:50 -06:00
Paul
08123cff0d
Use deque instead of vector for code readers so that the iterators and references will be stable
2020-02-06 11:56:17 -06:00
Paul Fultz II
8519a1411c
Fix helper header when using c++17 ( #1666 )
...
This will fix issue #1621 . It also adds tests for is_callable with c++11, c++14, and c++17.
The fallback implementation was completely broken so I rewrote it so it pass the tests as well. This should be used instead of PR #1631 .
2019-11-20 21:33:42 +05:30
Paul Fultz II
f6cf7e4e79
Use hcc when building with hcc compiler ( #1225 )
...
* Use hcc when building with hcc compiler
* Fix misnamed variable
* Dont set HIP_RUNTIME
2019-09-05 10:03:04 +00:00
Paul
516d92f4d7
Add host and device targets
2018-04-24 14:04:24 -05:00
Paul
5dbf7e0618
Update for lower case hip
2017-02-22 15:18:38 +05:30
Paul
2e83e3a01d
Change order of find_dependency
2017-02-22 15:18:11 +05:30
Paul
bae7356b42
Set hip version correctly
2017-02-13 15:57:10 +05:30