Граф коммитов

265 Коммитов

Автор SHA1 Сообщение Дата
Maneesh Gupta 92fcd74a38 Directed tests: Remove support for HIP_BUILD_LOCAL=0
Change-Id: Ib73845ac8ea0507ca8e476995aa8c237b11d0ccf
2016-09-13 20:40:19 +05:30
Maneesh Gupta 9749a10abc Directed tests: Refactor phase 2
- Restore HIP_BUILD_LOCAL flag. Defaults to 1.
 - HIP_PATH is used only when HIP_BUILD_LOCAL is 0.
 - HIP_PLATFORM, HCC_HOME, HIP_LIB_TYPE are passed on to HIP build.
 - Specifying HCC_HOME automatically sets HIP_DEVELOPER=1 for HIP build.
 - Always show HIP configure step output. Output is colored magenta.
 - Fix code indentation.

Change-Id: I74f2d9c1cb04bf865313b2db6b55fda567c8e071
2016-09-13 20:11:33 +05:30
Aditya Atluri 2d5140cb27 Added async memcpy driver api
Change-Id: I90e8a078d668a408e79f9e1142e7534771467a4f
2016-09-09 10:21:52 -05:00
Maneesh Gupta a07d51d5b9 Directed tests: Guard unsupported host math functions on NVCC
Change-Id: I1145c0e45a913167c82ddc593d8a9027f237c7ba
2016-09-09 12:07:15 +05:30
Maneesh Gupta 8efae1e488 Directed tests: Fix hipCtx_simple on NVCC
The test was using hipDeviceGetFromId instead of hipDeviceGet

Change-Id: Ia035ded5212f2659d5c8f01e9f6fcec514fe7ccb
2016-09-09 12:04:32 +05:30
Maneesh Gupta 59b6ffbe70 Directed tests: hipDynamicShared now compiles on NVCC
NVCC does not support template in extern __shared__. Compilation is
fixed but test still does not run on NVCC.

Change-Id: I427c9170812401460d60ef8e3246525eeda38514
2016-09-09 12:01:41 +05:30
Maneesh Gupta a3f892e69a directed tests: Show HIP build errors during configure stage
Change-Id: I068b668902cf54286ce5bb4c6c718b643bfa5754
2016-09-09 11:01:10 +05:30
Rahul Garg 9e05375acf Initial support for hipChooseDevice function
Change-Id: Iedbf5f98c96673ab701dd7539d80a77b994d296f
2016-09-08 22:37:24 +05:30
Maneesh Gupta 6db6dbaaaf Directed tests: Refactor phase 1 - build HIP the right way
Change-Id: I8fcd2bcb01b12878878f50777e2cf0095fae61a1
2016-09-08 17:20:38 +05:30
Ben Sander 4e994a3025 Add hipStreamQuery
Change-Id: Ib0813b1065feba4fe9ae861d24cfc6f9c5f580be
2016-09-07 15:18:34 -05:00
Ben Sander 48b1f7a6ea refactor ihipPreLaunchKernel phase#1
- Fix calls to HIP_INIT_API to pass all function arguments.
- Change ihipFunction to follow coding convention:
    - leading underscore for member fields,
    - camelCase for member fields.
- move kernel print function inside ihipPreLaunchKernel.
- add HIP_TRACE_API_COLOR, control color of messages.
- add ihipLogStatus wrapper to hipDeviceSynchronize()

Change-Id: I20bbb644da213f821404648945197254e3648fc9
2016-09-07 15:18:34 -05:00
Ben Sander 1f40a73ae1 add hipStreamQuery on nvcc, fix hipStreamWaitEvent for nvcc 2016-09-02 17:26:16 -05:00
Ben Sander 84b14aa9d6 Doc and test updates.
Change-Id: I44cbd2c0de7cb692d0194d1bb8b8ae25c58d4e00
2016-09-02 09:46:59 -05:00
Ben Sander 0923c2d261 hipStreamWaitEvent update.
Add passed to hipStreamWaitEvent test.
Fix pointerAttrib test to work with new and old HCC versions.
Minor code touchup.

Change-Id: I139ba6ce9f6bf2b4bee89aebdec5981b4346ffc0
2016-09-02 09:46:59 -05:00
Ben Sander 472999f5a3 Add test for hipStreamWaitEvent
Change-Id: I157b33a78a0fc125b4b85f611f32f3b492f1b4d9
2016-09-02 09:46:59 -05:00
pensun b726f0e949 Modify hipMalloc to take size of 0 and return NULL pointer for it.
Modify hipMemoryAllocate test for this change.

Change-Id: I884aee0cd5fe0c60aebb4cb37cdbb4833c5bd0c7
2016-09-01 13:08:30 -05:00
Aditya Atluri dfc60a8359 added hipInit for cuInit nvcc path
Change-Id: I594d08d936ac5d06f16e42c63062ac5776b65a0c
2016-08-29 15:20:09 -05:00
Aditya Atluri 7ae453f349 added sample for module api which works on both cuda and rocm
Change-Id: Id88abb3698a224177fd0531e3e16013dde6dd95e
2016-08-29 15:00:26 -05:00
Aditya Atluri 3d1bf4dbaf Cleaned up module api
- Moved HIP_INIT_API from internal to all public apis
- renamed hipLaunchModuleKernel to hipModuleLaunchKernel
- Changed tests according to the changed api

Change-Id: I822ff63c7c5b7dad340ece49456baf9d89428e9f
2016-08-28 16:48:57 -05:00
Aditya Atluri 8155f0e036 added memset and memcpy device functions
- Added memcpy and memset device functions
- Added test for memcpy and memset

Change-Id: Icd21a8dd964953b86d5e92889bf1664bee647219
2016-08-27 11:13:56 -05:00
Aditya Atluri 4152746e26 Added explicit memory copy direction apis
- Fixed stale printf in context api
- Added 4 sync memcpy apis
  1. hipMemcpyHtoD
  2. hipMemcpyDtoH
  3. hipMemcpyDtoD
  4. hipMemcpyHtoH
- Added test for added apis

Change-Id: I4a9c382445b62631f8d0bcbb9a670322288b72b1
2016-08-26 13:11:01 -05:00
Aditya Atluri 8b918b065a Added NVCC support and name changes
- Added NVCC support for module APIs
- Changed hipFunction and hipModule data types to hipFunction_t and hipModule_t
- Created new intenal ihipModuleGetFunction as it is used twice
- Changed test to match with the new data types

Change-Id: I300a1c7fd40ed7065b1b8b9de97e3a06b96ed729
2016-08-26 10:32:01 -05:00
Aditya Atluri 2287af23a1 Module test correction and hipModuleUnload API
- Corrected the hipModule.cpp test to minimal code
- Added hipModuleUnload API
- Added hipModuleUnload API test

Change-Id: I9c40337043d7972a570b795e1bfc104bd2c4d8aa
2016-08-23 14:19:15 -05:00
Aditya Atluri f9d49c2aed Added module api test with gcn binary
Change-Id: I61c3ecc2b34168d10f1a7b15d668630eb2c69c8c
2016-08-23 13:50:19 -05:00
Aditya Atluri 24f6251b99 Added more complex apis and copyright
- New header which redirects to CUDA/HIP path added for hipComplex.h
- Added more complex device api including fma
- Added copyright to new files

Change-Id: Iff0dece4c438e97d0ae33efa4312975d465a6464
2016-08-19 23:02:04 -05:00
Aditya Atluri 78b15bf062 Added support for complex device functions
- Added complex number arithmetic operation for float and double datatypes
- TODO: make them host functions and support half
- Added new function which is not in CUDA, hipCsqabs which is square of absolute value

Change-Id: Ib96e194ad45dc64fcba29eb19ad0376542e0591d
2016-08-19 21:48:23 -05:00
Maneesh Gupta 208b8da612 Enable hipDynamicShared directed test
Change-Id: I31e7e83ecb3e15fb25b63d6bb6fa9291484c9ef5
2016-08-18 14:15:50 +05:30
Maneesh Gupta ad2deaabc8 Update directed tests with all supported math functions
Change-Id: Id32a94313288e78bf2957bd19efb30877e20221d
2016-08-18 12:38:25 +05:30
Rahul Garg eec9edef80 Implementation of hipCtxGetDevice
Change-Id: I067572e486323c3aad6f744a2c0c4997c8696af6
2016-08-13 01:17:46 +05:30
Rahul Garg 62d390da58 First implementation of hipCtxXXX functions
Change-Id: I4609cbe6bd90a1fff8655bff4fdd773864397aba
2016-08-13 00:09:08 +05:30
Ben Sander 89164259ab Context update.
- Remove tls_deviceID.
- Add first passing test.

Change-Id: If3e2f254abf589028cfe4f9e6369745f04160de0
2016-08-10 08:59:47 -05:00
Ben Sander 1786b120ed Document workaround for parenthesis+macro+hipLaunchKernel
Change-Id: Ie04c99db92d6499ddde93028a96f9d8f72d3f992
2016-08-10 08:59:47 -05:00
Maneesh Gupta 2e9adefd71 Allow cmake to be run multiple times in directed tests
Change-Id: I9d68fdefd9f72895ad4bdb310fcf3c6e52dbbf02
2016-08-10 09:49:07 +05:30
Maneesh Gupta 76eeaf4fbb Fix build issues due to refactoring changes
Change-Id: I0a709ff4864244ba1b49e1a25327e3901ed6e17f
2016-08-09 22:49:32 +05:30
Ben Sander 8f402132ba Add initial context implementation.
APIs: hipInit, hipCtxCreate.
Track TLS default ctx.  Set deviceID now changes the ctx.
Add first context test.

Change-Id: If1cb9989b5a04a36147e25e84904336c7b6f3d88
2016-08-08 17:49:02 -05:00
Aditya Atluri c756bb3398 Partial fix async after kernel launch signal issue
Change-Id: Ib48d6564379160035bded9493b93663fba361710
2016-07-23 14:54:20 -05:00
Maneesh Gupta 7022986ab2 Merge branch 'hiparray' into amd-develop
Change-Id: I63ca7b1db7b593ac5cfb3fd7cd5d08d6e4075a4c
2016-07-21 12:29:56 +05:30
Aditya Atluri 272820a620 added kernel launch stress test
Change-Id: Ib50d47e55079839ba31aabb524b70b704d7a46fe
2016-07-19 13:57:56 -05:00
Maneesh Gupta 3f204b8580 Merge branch 'amd-develop' into amd-master
Change-Id: I04f85b207e15e66c1a546675dc0937726ee08362
2016-06-30 18:36:07 +05:30
Aditya Atluri 5633cc34cc moved half support to a source file
Change-Id: I7c09b41877e22c1b743dea25a585e5307427dafd
2016-06-30 18:23:29 +05:30
Aditya Atluri 83210c8ac3 added fp16 software support
Change-Id: Ic0fdd9f8248a66911169fc00d3af71f50b36e233
2016-06-30 18:23:29 +05:30
7SK 8264d5d6bd NVCC_COMPAT
add support for both cuda compatible implementation and hcc(faster)
implementation with test

Change-Id: I79a22344f458391d7dffac5f147619a542e97e4e
2016-06-28 09:36:06 +05:30
Ben Sander 9f29cc6989 Grid-launch updates to 2.0 and cleanup of old.
_ Use fields from GRID_LAUNCH_20 structure
  (See USE_GRID_LAUNCH_20 define, currently set to 0)
  "1" will require HCC support.
- Remove old DISABLE_GRID_LAUNCH support.

Change-Id: I584ce648d217251789a6283cf27feb24cb7dc8d1
2016-06-21 23:24:38 -05:00
Maneesh Gupta e3cdaeb002 Fix cmake issues in directed tests
Change-Id: Ie2ae78022550d5d37c3dbfaecece7d879fb2d37a
2016-06-20 22:00:52 +05:30
Aditya Atluri 90cd67e0b5 able to pass non-dim launch parm to kernel launch
Change-Id: I0411849a27efcba597a1a9aa08be179635e04988
2016-06-18 11:28:20 -05:00
Maneesh Gupta 50be71206d Disable hipMemcpyAll test
Change-Id: I58ff2e1baa91e3af335dd869ce4f6d56cd81028c
2016-06-18 15:48:42 +05:30
Maneesh Gupta 7da4b12b5c Disable running tests that are not being built
Change-Id: Ic1ae492780f4c7c6315e815e0b3c291b354927fd
2016-06-18 15:48:14 +05:30
Ben Sander 55560ab8a0 Fix test project names
Change-Id: I105c3759208ec832f3bdf6068029b4bfa2827909
2016-06-17 15:18:57 -05:00
Ben Sander 1b69b2e9f0 Refactor directed test infrastructue.
- Add hierarchy.  Tests now live in directories, each with its own
  CMakeFiles.txt.  Reduces merge conflicts.
- Change make_hip_executable -> build_hip_executable.
- Refresh docs.
- Enable some tests that were previously built but not run.

Change-Id: I8c5de3c954400bf233904282b8b42861a2b7c536
2016-06-17 15:18:57 -05:00
Ben Sander bcbeee6f2c Fix hierchical tests. Set compiler before project to avoid loop
Change-Id: Icede4e76cb47820b39403a7f1ba3f4bd3f47ed03
2016-06-17 15:18:57 -05:00