Aditya Atluri
52213587a7
Update CUDA_Runtime_API_functions_supported_by_HIP.md
...
[ROCm/clr commit: 55291cc654 ]
2016-03-22 10:42:34 -05:00
Aditya Atluri
726ffa5124
Update CUDA_Runtime_API_functions_supported_by_HIP.md
...
[ROCm/clr commit: a8a255b6bc ]
2016-03-21 18:33:50 -05:00
Aditya Atluri
cb2b9495f8
Revert "Revert "fixed memory free apis""
...
This reverts commit 70d2a03efd .
[ROCm/clr commit: 8af8ee2476 ]
2016-03-21 10:40:42 -05:00
Aditya Atluri
399994788f
Revert "Revert "fix nvcc for hipHostMalloc* flags.""
...
This reverts commit 0978c92dbc .
[ROCm/clr commit: bde1e6182d ]
2016-03-21 10:39:49 -05:00
Aditya Atluri
0978c92dbc
Revert "fix nvcc for hipHostMalloc* flags."
...
This reverts commit 849395ec02 .
[ROCm/clr commit: 83fee90e83 ]
2016-03-21 10:36:14 -05:00
Aditya Atluri
70d2a03efd
Revert "fixed memory free apis"
...
This reverts commit 805dbd6d90 .
[ROCm/clr commit: 1fa4d0d4b9 ]
2016-03-21 10:36:11 -05:00
Aditya Atluri
4ca3e4e20e
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/clr commit: e99179edc8 ]
2016-03-21 10:34:08 -05:00
Aditya Atluri
805dbd6d90
fixed memory free apis
...
[ROCm/clr commit: 71a6b5cb6c ]
2016-03-21 10:32:30 -05:00
Aditya Atluri
0a91b906f1
Disabling default-stream per-thread tests
...
[ROCm/clr commit: 93e6362104 ]
2016-03-21 14:42:23 -05:00
Ben Sander
37a02661a6
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/clr commit: 2d0fade1f7 ]
2016-03-22 02:30:10 -05:00
Ben Sander
db8bff1235
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/clr commit: bf83b949f6 ]
2016-03-22 01:17:17 -05:00
Ben Sander
849395ec02
fix nvcc for hipHostMalloc* flags.
...
[ROCm/clr commit: d495ffb1d3 ]
2016-03-21 09:33:46 -05:00
Ben Sander
7fb3f877b2
Remove kind (aka direction) for copy commands.
...
This is always auto-detected from the src/dest location.
[ROCm/clr commit: ac1eca47f7 ]
2016-03-21 05:35:36 -05:00
Aditya Atluri
f3ae40baf7
suppressed warning in hipFreeHost
...
[ROCm/clr commit: ea352aba6b ]
2016-03-20 15:31:59 -05:00
Aditya Atluri
cad8b62504
Added feature for --default-streams not working tests and hipcc
...
[ROCm/clr commit: f6b38b18b6 ]
2016-03-20 08:08:33 -05:00
Ben Sander
98106c384c
Implement hipHostFree on HCC path
...
[ROCm/clr commit: 80d708846a ]
2016-03-19 23:25:11 -05:00
Ben Sander
c2fd536c22
fix nvcc compiler
...
- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.
[ROCm/clr commit: 6984f24d3d ]
2016-03-19 04:20:15 -05:00
Ben Sander
250a2816fd
Refactor copy - place common code in resolveMemoryKind.
...
[ROCm/clr commit: 03731020f1 ]
2016-03-19 22:56:10 -05:00
Ben Sander
b1d3df6484
Deprecate hipMallocHost and hipFreeHost.
...
These will print compiler warnings if used, so we can weed them out
before removing.
Also add a default flags args for hipHostAlloc, in the C++ functioin
headers. So you can replace hipMallocHost(&ptr, size( with hipHostAlloc(&ptr, size)
[ROCm/clr commit: 57365eb7a3 ]
2016-03-19 22:53:59 -05:00
Ben Sander
c75b63b61c
Refactor waitALlDevices and async mem copy.
...
- move waitAllStreams to device member function.
- create separate stream member function for copyAsync, like copySync.
hipMemcpyAsync now calls the copyAsync.
[ROCm/clr commit: a88c2b1ec9 ]
2016-03-19 05:42:19 -05:00
Ben Sander
d41836a4a1
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/clr commit: 4c6fd4e7ec ]
2016-03-19 04:11:39 -05:00
Ben Sander
cf95ea5468
Swap in corrected hipHostAlloc (bad merge)
...
[ROCm/clr commit: aaa2429feb ]
2016-03-19 04:11:08 -05:00
Ben Sander
3305c49949
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
Conflicts:
src/hip_hcc.cpp
[ROCm/clr commit: 90ad8ddc5d ]
2016-03-19 03:22:09 -05:00
Ben Sander
3323d2005c
disable mt streams tests (for now)
...
[ROCm/clr commit: efc9df8805 ]
2016-03-19 03:10:31 -05:00
Ben Sander
57c08b7fce
Describe HIP env vars
...
[ROCm/clr commit: c39b0f9660 ]
2016-03-19 03:09:57 -05:00
Ben Sander
1abdd6602f
Fix copy and sync bugs. Remove extra sync in default stream.
...
- NULL stream was waiting for itself to be empty before each command.
- Force "blocking" streams to wait for NULL to empty. This was missing
before.
- async copy was disabling itself via trueAsync=false for common cases.
Refactor:
- rename _null_stream to _default_stream.
- move some null sync function to defaultSync, move to dev member func.
[ROCm/clr commit: 44522eb607 ]
2016-03-19 02:44:26 -05:00
Ben Sander
d207f3bc26
Add beastperiteration and onesize for testing.
...
onesize allows running tests at one specific size.
[ROCm/clr commit: 5197cf250d ]
2016-03-19 02:43:04 -05:00
Ben Sander
d3a3e0ba63
Improve formatting - line up cols
...
[ROCm/clr commit: c5d0813f03 ]
2016-03-18 23:43:04 -05:00
Ben Sander
c55187604c
Print Pinned or Unpinned in result summary
...
[ROCm/clr commit: 3dc6906855 ]
2016-03-18 21:28:29 -05:00
Aditya Atluri
2bc7b1f3ba
Update CUDA_Runtime_API_functions_supported_by_HIP.md
...
[ROCm/clr commit: a17e390283 ]
2016-03-18 11:28:06 -05:00
Aditya Atluri
336001aa29
Create CUDA_Runtime_API_functions_supported_by_HIP.md
...
[ROCm/clr commit: 564d13a0b3 ]
2016-03-18 11:23:44 -05:00
Ben Sander
203eeda2f7
Supported --aliged mode. Add results check for H2D and D2H.
...
[ROCm/clr commit: 690486b9eb ]
2016-03-18 03:09:52 -05:00
Ben Sander
b1fe0120ca
Refactor copy code.
...
-Move staging buffer locks inside the staging buffer code.
-Remove dedicated per-device completion_signal + per-device lock -
instead allocated signal from the per-stream pool. This elimintes
the lock and allows more concurrency.
-remove switch HIP_DISABLE_BIDIR_MEMCPY
[ROCm/clr commit: e64174f47a ]
2016-03-18 03:02:00 -05:00
Ben Sander
a0d3c018c0
Refactor staging buffer and sync copies.
...
- refactor staging buffer to operate on hsa* data structures not
hc::accelerator.
- use hsa_memory_allocate to allocate staging buffers rather than
am_alloc.
- Refactor device reset with single member function. Don't reallocate
staging buffers on reset.
- Properly track dependencies based on command type. Add new deps for
H2D and D2D rather than overloading H2D.
[ROCm/clr commit: 3b45e064f9 ]
2016-03-17 20:09:10 -05:00
Ben Sander
dd90a8ff34
Refactor to isolate staging buffer code.
...
[ROCm/clr commit: 1b7cc7d921 ]
2016-03-17 00:20:56 -05:00
Ben Sander
622902d408
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/clr commit: a1879ba59b ]
2016-03-16 22:26:49 -05:00
Ben Sander
c903229e9a
Add aligned alloc
...
[ROCm/clr commit: c9d46bdcde ]
2016-03-16 21:55:57 -05:00
Ben Sander
931b58f438
Checkpoint code cleanup.
...
- Refactor ihipStream in prep for thread-safe implementation.
- Do some work on PinInPlace implementation.
[ROCm/clr commit: 8acb53e160 ]
2016-03-16 21:16:29 -05:00
Aditya Atluri
b3612a7356
changed flag in hipHostRegister
...
[ROCm/clr commit: 4b96e8c789 ]
2016-03-16 08:01:53 -05:00
Aditya Atluri
420797aed8
src/ fixed hipHostAllocDefault flags
...
[ROCm/clr commit: 6beed19460 ]
2016-03-16 07:32:54 -05:00
Aditya Atluri
488512466a
Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
...
[ROCm/clr commit: 9b78f0a454 ]
2016-03-16 07:17:22 -05:00
Aditya Atluri
d62227266b
Added performance test for memcpy
...
[ROCm/clr commit: 7567a6c0ac ]
2016-03-16 07:16:51 -05:00
Aditya Atluri
63523fbeb7
tests/src [v4] Added feature for partial writes on CPU
...
[ROCm/clr commit: 6baeb08e1c ]
2016-03-16 07:04:40 -05:00
Aditya Atluri
9f9a56597c
test/src [v3] clean up
...
[ROCm/clr commit: 9b772c8553 ]
2016-03-16 05:30:29 -05:00
Aditya Atluri
6253fbbfe5
increased iteration size
...
[ROCm/clr commit: 8f527d2288 ]
2016-03-16 05:24:08 -05:00
Aditya Atluri
2a0d9ffb9c
added cudaHostRegister test
...
[ROCm/clr commit: a60649868d ]
2016-03-16 05:15:03 -05:00
Aditya Atluri
7493d6074a
corrected first and second kernel dispatch
...
[ROCm/clr commit: 369d01086f ]
2016-03-15 14:22:00 -05:00
Aditya Atluri
343cf7e864
Added single kernel launch to sample
...
[ROCm/clr commit: a6441c3334 ]
2016-03-15 21:05:15 -05:00
Aditya Atluri
649c943833
added performance metrics for kernel dispatch
...
[ROCm/clr commit: b7bf5830c1 ]
2016-03-15 12:37:24 -05:00
Aditya Atluri
dbc1196236
v2 deprecating hipMallocHost with hipHostAlloc
...
[ROCm/clr commit: 2743a5082f ]
2016-03-15 13:39:15 -05:00