streamhsa
76f2670cef
Add __ldg
2016-04-16 21:12:09 +08:00
Aditya Atluri
2e80de6dcb
improved error returns for hipHostRegister/UnRegister functions
2016-04-15 10:42:31 -05:00
Maneesh Gupta
5a31bad821
Replace /opt/hcc -> /opt/rocm/hcc and /opt/hsa -> /opt/rocm/hsa
2016-04-15 12:56:31 +05:30
Ben Sander
b0529e04f1
Clean up disable.
...
Add USE_HCC_LOCK (disabled)
Disable USE_PEER_TO_PEER.
2016-04-11 09:09:36 -05:00
Ben Sander
4a0c0479d4
add simple negative P2P tests
2016-04-11 07:58:59 -05:00
Ben Sander
83f0de7806
P2p checkpoint.
...
- set USE_PEER_TO_PEER=3 (requires HCC "am_memtracker_update_peers")
- when enabling peer, turn it on for previously allocated memory.
- hipDeviceCanAccessPeer is no longer self-ware (self does not qualify
as a peer)
- device peerlist always includes self, so when we call allow_access
we never remove self access.
- hipDeviceReset() removes old peer mappings.
2016-04-11 07:58:59 -05:00
Ben Sander
71dac8e37c
Add simple P2P test
2016-04-11 07:58:58 -05:00
Maneesh Gupta
34ee916681
Directed tests: make HIP_BUILD_LOCAL as default
2016-04-09 22:05:45 +05:30
Maneesh Gupta
033269c513
Enable directed tests to build HIP locally via cmake option
2016-04-04 13:53:24 +05:30
Maneesh Gupta
9fd0a182f6
Revert "Initial (non-default) support for shared library HIP"
...
This reverts commit 9de57129b4 .
2016-04-01 16:07:07 +05:30
Maneesh Gupta
9de57129b4
Initial (non-default) support for shared library HIP
2016-04-01 15:45:32 +05:30
Aditya Atluri
72c72d8748
moved cpp specific device code from headers to source
2016-03-31 04:45:00 -05:00
Ben Sander
a37a019b01
rename to hipMultiThreadDevice for consistency
2016-03-29 17:33:29 -05:00
Ben Sander
23e5eb8912
Test improvements
...
- partition hipThreadSafeDevice into smaller pieces.
- Add debug to hipMultiThreadStream.
- print more precision when mismatch detected.
- enable more tests in CMakeFiles.txt.
2016-03-29 17:29:31 -05:00
Ben Sander
756c0edf9b
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
include/hcc_detail/trace_helper.h
2016-03-29 05:56:03 -05:00
scchan
2ddb8fface
remove the --hipcc_explicit_lib
2016-03-28 13:56:23 -05:00
Ben Sander
530ab9434a
Make ihipDevice_t thread-safe.
...
Move critical data into separate class and protect with LockAccessor
wrapper class.
For device, the streams list is the critical data since it is modified when
streams are created or destroyed. The streams list is accessed in
several places including when synchronizing across all streams on the
device (ie from the default stream).
Other device data is set once by the device cosntructor and is not critical
so
All functions which acquire the LockAccessor now named with "locked_" prefix.
2016-03-26 10:46:20 -05:00
Aditya Atluri
b371dd58ea
updated hipdevicesync test
2016-03-25 06:41:49 -05:00
Aditya Atluri
7a0066eb6f
added functional tests for hip device apis
2016-03-25 05:49:33 -05:00
Aditya Atluri
ae46b221df
corrected cmake
2016-03-24 11:17:57 -05:00
Ben Sander
0845164012
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
2016-03-24 14:05:58 -05:00
Ben Sander
5e3428acc1
revert CMakelists
2016-03-24 13:20:25 -05:00
Ben Sander
c567189cb8
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
2016-03-24 13:10:33 -05:00
Ben Sander
eb33395045
Add --hipcc_explicit_lib option
...
Tells hipcc not to add /opt/hip or -lhip_hcc to command-line
(since it has already been done).
2016-03-24 11:53:33 -05:00
Ben Sander
c4e1aba862
CMake improvements.
...
- Directed tests build hip_hcc as subdir.
- Support HCC_HOME env var to control which HCC to use for build
hip_hcc.
2016-03-24 10:16:35 -05:00
Aditya Atluri
c5ec73736d
added CR and hipsetdeviceflags func
2016-03-24 07:04:01 -05:00
Aditya Atluri
794007c3e8
Split files based on functionality and changed cmake file
2016-03-24 04:57:30 -05:00
Aditya Atluri
7920fd9a47
moved variables to headers
2016-03-23 12:59:52 -05:00
Aditya Atluri
89bfc0e375
WIP added modular feature for device apis
2016-03-23 07:54:01 -05:00
Ben Sander
0f81c5bcf2
use the CPU_Agent for memory copies to indicate direction.
2016-03-23 10:29:44 -05:00
Ben Sander
d07b347cac
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
src/hip_hcc.cpp
2016-03-23 03:22:09 -05:00
Ben Sander
b6b3fea05b
use codexl marker interface to mark HIP function/begin end.
...
- Creates markers in HIP group and they show up in CodeXL trace
- Marker text includes HIP functioin arguments
- (Add trace_helper to convert arguments to strings)
- Still need to add HIP_INIT_API for ~30 HIP functions.
2016-03-23 01:17:53 -05:00
Aditya Atluri
52cf63472c
Revert "Revert "fixed memory free apis""
...
This reverts commit 287ba34aca .
2016-03-21 10:40:42 -05:00
Aditya Atluri
287ba34aca
Revert "fixed memory free apis"
...
This reverts commit 96a1899df7 .
2016-03-21 10:36:11 -05:00
Aditya Atluri
96a1899df7
fixed memory free apis
2016-03-21 10:32:30 -05:00
Aditya Atluri
6d1420ab68
Disabling default-stream per-thread tests
2016-03-21 14:42:23 -05:00
Aditya Atluri
a232d65db1
Added feature for --default-streams not working tests and hipcc
2016-03-20 08:08:33 -05:00
Ben Sander
dfca4faf27
disable mt streams tests (for now)
2016-03-19 03:10:31 -05:00
Ben Sander
e7586adb33
Refactor to isolate staging buffer code.
2016-03-17 00:20:56 -05:00
Ben Sander
28ee7aff71
Start separaration of staging_buffer.cpp code.
...
Still #include staging_buffer.cpp into hip_hcc.cpp.
Directed tests compile hip_hcc to static library and use the library.
2016-03-16 22:26:49 -05:00
Ben Sander
e1617b9604
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
src/hip_hcc.cpp
tests/src/CMakeLists.txt
2016-03-14 15:01:26 -05:00
Aditya Atluri
cbb42c6b6a
Added a random test for memcpyAsync
2016-03-08 03:40:56 -06:00
Ben Sander
cc7517b57e
Refactor memccpy tests.
...
- Add "hipMemcpy_simple" - some simple smoke tests.
- Run memcpy 3 times w/ different switches for kinds, sizes,
multi-thread.
2016-03-07 17:15:48 -06:00
Aditya Atluri
4ed0b1cb1a
Added hipHostRegister feature for CUDA backend and its tests
2016-03-07 03:42:50 -06:00
Aditya Atluri
75952029d6
added feature for hipHostGetFlags for CUDA and HIP
2016-03-06 12:17:30 -06:00
Aditya Atluri
f479531be5
Added hipHostAlloc feature for CUDA
2016-03-05 13:58:56 -06:00
Aditya Atluri
fc49dc580a
Added new multithreaded stream test
2016-03-01 19:33:47 -06:00
pensun
2d0394eaae
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
2016-02-27 14:51:52 -06:00
pensun
39b44cb484
Test cases for HIP_VISIBLE_DEVICES/CUDA_VISIBLE_DEVICES.
...
hipEnvVar is the base test case, to be called by hipEnvVarDriver
at the run time.
Test case includes tests for normal use case of the environment
variable, invalid value/sequence and use CUDA_VISIBLE_DEVICES as a
alternative.
2016-02-27 14:48:00 -06:00
Aditya Atluri
14ec56acab
[v2]: Added test to check single stream dispatches
2016-02-27 05:55:56 -06:00