Commit graph

135 Commits

Autor SHA1 Nachricht Datum
scchan 2ddb8fface remove the --hipcc_explicit_lib 2016-03-28 13:56:23 -05:00
Aditya Atluri a5628ddfb4 Added test for C + HIP 2016-03-25 13:45:28 -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 bf3828cdb9 updated CR 2016-03-24 21:48:27 -05:00
Aditya Atluri ae46b221df corrected cmake 2016-03-24 11:17:57 -05:00
Aditya Atluri 90dec927d3 Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-03-24 07:34:10 -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 f3ad047194 Provcide more flexiblity in using HIP_PATH to control installation.
Also improve docs for developers / contributing.
2016-03-24 13:33:07 -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 95c96638aa Added canMapMemory feature to device properties 2016-03-24 07:33:24 -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
Aditya Atluri 362867d325 fixed hipHostGetFlags test 2016-03-23 02:45:21 -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
Ben Sander ab910efb96 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.
2016-03-22 02:30:10 -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 9941ba0bc6 fix nvcc compiler
- MallocHost and FreeHost deprecation.
- Change tests to call new hipHost* equivs.
- Add missing StreamSynchronize.
2016-03-19 04:20:15 -05:00
Ben Sander 95e1c8eb32 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.
2016-03-19 04:11:39 -05:00
Ben Sander 1de63bfeea Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging
Conflicts:
	src/hip_hcc.cpp
2016-03-19 03:22:09 -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 c02bccc153 Add aligned alloc 2016-03-16 21:55:57 -05:00
Aditya Atluri b768568902 src/ fixed hipHostAllocDefault flags 2016-03-16 07:32:54 -05:00
Aditya Atluri 57a85763bd Merge branch 'privatestaging' of https://github.com/AMDComputeLibraries/HIP-privatestaging into privatestaging 2016-03-16 07:17:22 -05:00
Aditya Atluri 67d385f407 Added performance test for memcpy 2016-03-16 07:16:51 -05:00
Aditya Atluri 451cd9f876 tests/src [v4] Added feature for partial writes on CPU 2016-03-16 07:04:40 -05:00
Aditya Atluri 62b8351f02 test/src [v3] clean up 2016-03-16 05:30:29 -05:00
Aditya Atluri 89eb2a7b52 increased iteration size 2016-03-16 05:24:08 -05:00
Aditya Atluri e67133ce21 added cudaHostRegister test 2016-03-16 05:15:03 -05:00
Aditya Atluri cbdc8c277c Deprecating hipMallocHost to hipHostAlloc 2016-03-15 06:30:16 -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 102f173396 Added hipHostRegister for hip with tests and added copyright 2016-03-08 12:57:22 -06: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 de85c80eb0 added copyrights for newly added tests 2016-03-07 02:01:25 -06:00
Aditya Atluri faaee7e9bf Increased size of arrays for single stream tests 2016-03-07 01:40:31 -06:00