Aditya Atluri
afd8f2bcfc
C guarding the apis
...
[ROCm/hip commit: 496da0aabd ]
2016-03-30 06:08:50 -05:00
Aditya Atluri
f052a2752a
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: 39af5d9caf ]
2016-03-29 11:18:09 -05:00
Ben Sander
55bd3a8d0c
rename to hipMultiThreadDevice for consistency
...
[ROCm/hip commit: a37a019b01 ]
2016-03-29 17:33:29 -05:00
Ben Sander
321933c08f
Test improvements
...
- partition hipThreadSafeDevice into smaller pieces.
- Add debug to hipMultiThreadStream.
- print more precision when mismatch detected.
- enable more tests in CMakeFiles.txt.
[ROCm/hip commit: 23e5eb8912 ]
2016-03-29 17:29:31 -05:00
Ben Sander
abf24c2147
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: ce4052f09c ]
2016-03-29 17:12:36 -05:00
Ben Sander
1f8e0e2e72
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: fb7862dba3 ]
2016-03-29 14:43:35 -05:00
Aditya Atluri
ffe185d731
Calling intrinsics from global kernel
...
[ROCm/hip commit: 61cd2bb399 ]
2016-03-29 11:17:55 -05:00
Aditya Atluri
d0b0cda704
added host flags to hipDeviceBody test
...
[ROCm/hip commit: f518d0f818 ]
2016-03-29 09:27:57 -05:00
Aditya Atluri
b7284988d6
Added tests for running device code from a difference source file
...
[ROCm/hip commit: 2f46ada042 ]
2016-03-29 09:22:31 -05:00
Ben Sander
9e50af9124
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
include/hcc_detail/trace_helper.h
[ROCm/hip commit: 756c0edf9b ]
2016-03-29 05:56:03 -05:00
Aditya Atluri
79fea63bb7
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: 4584fb4453 ]
2016-03-29 02:28:20 -05:00
Aditya Atluri
811d6d52ea
Not using classes inside headers
...
[ROCm/hip commit: f01810183b ]
2016-03-29 02:27:51 -05:00
scchan
63636b07a8
remove the --hipcc_explicit_lib
...
[ROCm/hip commit: 2ddb8fface ]
2016-03-28 13:56:23 -05:00
Ben Sander
6f88d31a1f
Protect _stream_id as well.
...
- move lockedaccessor
- clean up device class.
- add simple ihipDevice constructor.
[ROCm/hip commit: 395e7eab96 ]
2016-03-26 11:45:25 -05:00
Ben Sander
141ccad414
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.
[ROCm/hip commit: 530ab9434a ]
2016-03-26 10:46:20 -05:00
Aditya Atluri
db0cd634ba
Added test for C + HIP
...
[ROCm/hip commit: a5628ddfb4 ]
2016-03-25 13:45:28 -05:00
Aditya Atluri
fca3c4b260
updated hipdevicesync test
...
[ROCm/hip commit: b371dd58ea ]
2016-03-25 06:41:49 -05:00
Aditya Atluri
3b32a4a8da
added functional tests for hip device apis
...
[ROCm/hip commit: 7a0066eb6f ]
2016-03-25 05:49:33 -05:00
Aditya Atluri
37df83870e
updated CR
...
[ROCm/hip commit: bf3828cdb9 ]
2016-03-24 21:48:27 -05:00
Aditya Atluri
2005380573
corrected cmake
...
[ROCm/hip commit: ae46b221df ]
2016-03-24 11:17:57 -05:00
Aditya Atluri
859aed59b6
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: 90dec927d3 ]
2016-03-24 07:34:10 -05:00
Ben Sander
ccdaa5eee0
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: 0845164012 ]
2016-03-24 14:05:58 -05:00
Ben Sander
3c6f786cf6
revert CMakelists
...
[ROCm/hip commit: 5e3428acc1 ]
2016-03-24 13:20:25 -05:00
Ben Sander
2a27b6df99
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: c567189cb8 ]
2016-03-24 13:10:33 -05:00
Ben Sander
19760d3390
Add --hipcc_explicit_lib option
...
Tells hipcc not to add /opt/hip or -lhip_hcc to command-line
(since it has already been done).
[ROCm/hip commit: eb33395045 ]
2016-03-24 11:53:33 -05:00
Ben Sander
08ba8339bb
CMake improvements.
...
- Directed tests build hip_hcc as subdir.
- Support HCC_HOME env var to control which HCC to use for build
hip_hcc.
[ROCm/hip commit: c4e1aba862 ]
2016-03-24 10:16:35 -05:00
Aditya Atluri
41037cad90
Added canMapMemory feature to device properties
...
[ROCm/hip commit: 95c96638aa ]
2016-03-24 07:33:24 -05:00
Aditya Atluri
6aa83a8a32
added CR and hipsetdeviceflags func
...
[ROCm/hip commit: c5ec73736d ]
2016-03-24 07:04:01 -05:00
Aditya Atluri
702672c3df
Split files based on functionality and changed cmake file
...
[ROCm/hip commit: 794007c3e8 ]
2016-03-24 04:57:30 -05:00
Aditya Atluri
e0c6809779
moved variables to headers
...
[ROCm/hip commit: 7920fd9a47 ]
2016-03-23 12:59:52 -05:00
Aditya Atluri
4ca4cae3fa
WIP added modular feature for device apis
...
[ROCm/hip commit: 89bfc0e375 ]
2016-03-23 07:54:01 -05:00
Aditya Atluri
5b597511b6
fixed hipHostGetFlags test
...
[ROCm/hip commit: 362867d325 ]
2016-03-23 02:45:21 -05:00
Ben Sander
748180c769
use the CPU_Agent for memory copies to indicate direction.
...
[ROCm/hip commit: 0f81c5bcf2 ]
2016-03-23 10:29:44 -05:00
Ben Sander
a7ff86a141
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
src/hip_hcc.cpp
[ROCm/hip commit: d07b347cac ]
2016-03-23 03:22:09 -05:00
Ben Sander
82cda5c087
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.
[ROCm/hip commit: b6b3fea05b ]
2016-03-23 01:17:53 -05:00
Ben Sander
b319209299
hipHostRegister and hipHostMalloc refactor.
...
Note hipHostMalloc (not hipHostAlloc or hipMallocHost).
- the hipHost* is used for all HIP APIs dealing with Host memory.
(including hipHostMalloc, hipHostFree, hipHostRegister,
hipHostUnregister, hipHostGetFlags, hipHostGetDevicePointer).
- hipMallocHost is consistent with "hipMalloc" for allocating device
memory. Enumerations hipHostMalloc* also used as optional
flags parm to hipHostMalloc.
[ROCm/hip commit: ab910efb96 ]
2016-03-22 02:30:10 -05:00
Aditya Atluri
9741873703
Revert "Revert "fixed memory free apis""
...
This reverts commit 9ba9f2a407 .
[ROCm/hip commit: 52cf63472c ]
2016-03-21 10:40:42 -05:00
Aditya Atluri
9ba9f2a407
Revert "fixed memory free apis"
...
This reverts commit 2a044e3823 .
[ROCm/hip commit: 287ba34aca ]
2016-03-21 10:36:11 -05:00
Aditya Atluri
2a044e3823
fixed memory free apis
...
[ROCm/hip commit: 96a1899df7 ]
2016-03-21 10:32:30 -05:00
Aditya Atluri
776d201d0e
Disabling default-stream per-thread tests
...
[ROCm/hip commit: 6d1420ab68 ]
2016-03-21 14:42:23 -05:00
Aditya Atluri
dd6fc044d6
Added feature for --default-streams not working tests and hipcc
...
[ROCm/hip commit: a232d65db1 ]
2016-03-20 08:08:33 -05:00
Ben Sander
9c3100894c
fix nvcc compiler
...
- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.
[ROCm/hip commit: 9941ba0bc6 ]
2016-03-19 04:20:15 -05:00
Ben Sander
11603764be
Fix bug: test was allocating host mem instead of device mem.
...
Caused assertion when checking free + allocated should
not exceed total. Bug introduced in hipHostAlloc conversion.
[ROCm/hip commit: 95e1c8eb32 ]
2016-03-19 04:11:39 -05:00
Ben Sander
5297376252
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
src/hip_hcc.cpp
[ROCm/hip commit: 1de63bfeea ]
2016-03-19 03:22:09 -05:00
Ben Sander
013f08418f
disable mt streams tests (for now)
...
[ROCm/hip commit: dfca4faf27 ]
2016-03-19 03:10:31 -05:00
Ben Sander
fc27c61c58
Refactor to isolate staging buffer code.
...
[ROCm/hip commit: e7586adb33 ]
2016-03-17 00:20:56 -05:00
Ben Sander
0ae7bc7e14
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.
[ROCm/hip commit: 28ee7aff71 ]
2016-03-16 22:26:49 -05:00
Ben Sander
910017a20f
Add aligned alloc
...
[ROCm/hip commit: c02bccc153 ]
2016-03-16 21:55:57 -05:00
Aditya Atluri
9b39bdf3e0
src/ fixed hipHostAllocDefault flags
...
[ROCm/hip commit: b768568902 ]
2016-03-16 07:32:54 -05:00
Aditya Atluri
7dd54d20ca
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/hip commit: 57a85763bd ]
2016-03-16 07:17:22 -05:00