Grafico dei commit

410 Commit

Autore SHA1 Messaggio Data
Ben Sander 445042f916 Fix HIP_SYNC_NULL_STREAM=0 mode.
- Fix null-stream sync
- hipStreamDestroy of null stream returns hipErrorInvalidResourceHandle
- Update documentation.
- Add tests for null stream sync, hipEventElapsedTime.
- Rename internal enum hipEventStatusRecorded to hipEventStatusComplete
- refactor hipStreamWaitEvent to streamline control-flow


[ROCm/hip commit: 39c18e5e5f]
2017-06-05 08:50:22 -05:00
Ben Sander f3950e0748 Update tests.
Fix some NVCC issues.
Add hipStreamSync2, record_event tests.


[ROCm/hip commit: 8ce6d17983]
2017-06-04 20:18:37 -05:00
Ben Sander a1bdd5f585 Update tests, add p2p coherency test.
[ROCm/hip commit: d5c1616324]
2017-06-03 17:11:34 -05:00
Maneesh Gupta 404c3f6751 Fix hipMemoryAllocate test for single GPU
Change-Id: If121c18ab490ba125dc689ffc08a8839fd280c38


[ROCm/hip commit: 502a74fcd6]
2017-05-31 10:16:57 +05:30
Maneesh Gupta be2c61b72a Disable rcbrtf, scalblnf, scalbnf in single precision device test
Change-Id: I8a250a64a0cb05132d022a11d9766ced9cdf11a7


[ROCm/hip commit: 5cdd1b2bf5]
2017-05-31 10:16:19 +05:30
Maneesh Gupta ed41fcd51a Disable rcbrt, scalbln and scalbn double precision device test
Change-Id: I46bd895701c46d3592b553090cafba99e41a2e2d


[ROCm/hip commit: 4919863d3e]
2017-05-31 10:15:41 +05:30
Sandeep Kumar 96a7f1853e Add inline asm hip directed tests for v_add and v_mac
Change-Id: Ie5ace2e42d5da89b16e040537df2bb13d3883c6d


[ROCm/hip commit: 830f2b100d]
2017-05-31 09:25:40 +05:30
Ben Sander b3e01ed74f Add event controls for release fences.
Env var : HIP_EVENT_SYS_RELEASE
Event allocation flags : hipEventReleaseToDevice, hipEventReleaseToSystem
   (remove hipEventDisableSystemRelease)

Update test for new functionality.


[ROCm/hip commit: ec7102f461]
2017-05-27 16:02:34 -05:00
Ben Sander e24627aa80 Cleanup hipEvent. (Intermediate checkpoint)
Support hipEventDisableSystemRelease flag.
Update test.
Remove stray printf


[ROCm/hip commit: 620eb30691]
2017-05-27 16:02:34 -05:00
Ben Sander c88190d698 Updates so hip compiles on CUDA.
[ROCm/hip commit: be8d0ba644]
2017-05-27 15:55:07 -05:00
Ben Sander 5b9ce41633 Add hipHostMallocCoherent, hipHostMallocNonCoherent
Provide per-allocation control over coherent/non-coherent mem.
These overrid the default HIP_COHERENT_HOST_ALLOC setting.


[ROCm/hip commit: 75f691ec2f]
2017-05-24 00:48:10 -05:00
Ben Sander 247c34195f Expand test to cover copy followed by event sync
[ROCm/hip commit: 236ce70e94]
2017-05-23 23:15:45 -05:00
Ben Sander bd7a374f20 Make hipMultiThreadStreams1 test a little harsher.
Fail faster if synchronization rules are violated.
Run vectorAddRevers to read last elements of array first - if the
vector add kernel starts before preceding copy finishes we
will read stale data and flag the error.

Increase default array sizes, so synchronization errors more easily
exposed.


[ROCm/hip commit: 2e1fec47ab]
2017-05-16 19:04:25 -05:00
Ben Sander f3dcff0906 Fix HIP_TRACE_API so kernel launch only printed when requested.
[ROCm/hip commit: 427f8472aa]
2017-05-16 19:04:25 -05:00
Ben Sander a55ce5bee4 Add initial HIP_SYNC_NULL_STREAM=0 mode.
This eliminates host-synchronization for null stream.  Instead, the
null-stream uses GPU-side events to wait for other streams.
Default is OFF pending additional testing.

Add enhanced null-stream test.

Also refine HIP_TRACE_API.


[ROCm/hip commit: 27877f8854]
2017-05-16 19:04:25 -05:00
Ben Sander cfe81dfbf4 Update tests README
[ROCm/hip commit: c67b828a5a]
2017-05-16 19:04:25 -05:00
Ben Sander 7d07d804d8 split debugging into separate .md file
[ROCm/hip commit: db097ab392]
2017-05-16 19:04:25 -05:00
Ben Sander ff72a701b7 hipHostMalloc allocation are mapped to all devices by default.
Support hipHostMallocPortable flag.
Default flags are hipHostMallocPortable | hipHostMallocMapped.

Also:
-refactor tests to move addCount and addCountReverse into HipTest
namespace.
-test multi-GPU host memory.


[ROCm/hip commit: c3ccaa01e5]
2017-05-10 17:34:36 -05:00
Ben Sander 5d558861c2 Fix hipStreamWaitEvent for single GPU.
[ROCm/hip commit: e0c3ea15b2]
2017-05-10 13:23:49 -05:00
Ben Sander 639d152ff8 Refactor hipHostRegister test.
Run all tests in one command.
Run 128 offsets.


[ROCm/hip commit: 6437f5d2b2]
2017-05-05 17:29:04 -05:00
Ben Sander 2e2c773643 Update streamEventTEst.
- add checks for events across devices.
- refactor test to make sure it runs long enough to sensitive sync
  techniques.
- add tests for DeviceSync, streamWaitEvent.


[ROCm/hip commit: 2d0f509de5]
2017-05-05 17:29:04 -05:00
wsttiger 3bf30acbd7 Improve hipStreamWaitEvent test.
- use addOne kernel, use local initializer rather than init_array.
- use addOneReverse test to add from back of array.  Test alternate fwd and backward to stress dependency logic.
- check device-side dependencies.


[ROCm/hip commit: 2a253680da]
2017-05-05 17:29:04 -05:00
Aditya Atluri a2c405c265 added hipFuncSetCacheConfig API for nvcc path
Change-Id: I87fae35bc0e10a0dca5ae1c5015fe5d9e52a1d0d


[ROCm/hip commit: fc6248ce82]
2017-04-26 18:56:57 -05:00
Ben Sander 0e14f7f58e Add host offset checking
[ROCm/hip commit: cd93a2f229]
2017-04-24 22:30:54 -05:00
Ben Sander e0bd60a22f Refactor hipHostRegister test.
- Add more testing for offsets.
- Parse cmdline options and use --tests.


[ROCm/hip commit: b7b17c3841]
2017-04-24 22:30:54 -05:00
Ben Sander 244e79d54d Refactor hipHostRegister to cover misaligned cases.
[ROCm/hip commit: 8ba993e36c]
2017-04-24 22:30:54 -05:00
Ben Sander ed7b16786a Add test for non-page-aligned mem copies.
[ROCm/hip commit: ab410add5c]
2017-04-24 22:30:54 -05:00
Ben Sander 70ed508153 Add corrected test for offsets
[ROCm/hip commit: c5d89d9e7f]
2017-04-24 22:30:54 -05:00
Ben Sander 9699bcc3da Refactor hipMemcpy test to share mem alloc for multiple copies.
[ROCm/hip commit: 2bc0a6030e]
2017-04-24 22:30:54 -05:00
Ben Sander 3ef01532b9 Add negative testing for memory full condition.
[ROCm/hip commit: dc001ef9b4]
2017-04-24 22:30:54 -05:00
Aditya Atluri 26f6ce992d added __host__ for complex functions and corrected memset and memcpy test
Change-Id: I9ffefb7a0025aa111a54d20d2766982df15532e7


[ROCm/hip commit: 6dff2714e9]
2017-04-06 09:29:44 -05:00
Aditya Atluri fcb4331a6a Fixed copyright and header names
Change-Id: Id595c65ea3b7289e87be4c42db5d8a31905a4fdd


[ROCm/hip commit: 1ef7222c3a]
2017-03-31 12:40:29 -05:00
Sun, Peng 39550b0f4c fix hipVectorTypesDevice direct test with GGL enabled
Change-Id: I7a63b87348f08f094cd709e87397d9e0fc24e4c2


[ROCm/hip commit: c865151e50]
2017-03-30 17:14:55 -05:00
Rahul Garg 83ce6f48a9 Update hipTestDeviceSymbol sample
Change-Id: If5ba99c60cd30c4491ca3a4856764224163d3ddf


[ROCm/hip commit: ec0d334354]
2017-03-24 10:39:11 +05:30
Ben Sander a9ec705ee4 Add USE_PROMOTE_FREE_HCC for smooth transition to new HCC caps.
ADDRESS_SPACE_1 defines


[ROCm/hip commit: e85c167171]
2017-03-17 11:04:39 -05:00
Ben Sander 25e4ace28b Add simple device-side assert macro
Currently swallows asserts but will compile.


[ROCm/hip commit: ecd8179a71]
2017-03-17 10:25:56 -05:00
Maneesh Gupta 86e2a5d11d Disable broken tests on hcc path
Change-Id: Id6234da576566faa32d5fdf42dca6d6267596823


[ROCm/hip commit: 65bb22eefc]
2017-03-15 12:03:44 +05:30
Maneesh Gupta 366a5e09a1 Merge branch 'amd-master' into amd-develop
Change-Id: I01a77c34e11b1b02cb20e11b105741f6bd383543


[ROCm/hip commit: 1337ed9159]
2017-03-15 09:56:45 +05:30
Rahul Garg 03c6de6968 hipMemsetD8 support for HIP/NVCC path
Change-Id: I48eee8266afd7b45a12d5ce2c4849b687a006c0f


[ROCm/hip commit: 913867fe6a]
2017-03-14 23:49:21 +05:30
Rahul Garg 0bfd692b59 Added hipMemsetD8
Change-Id: I6a230a036c9c46c72a77d5f93c16ce8a00c3f837


[ROCm/hip commit: 1aba3c4375]
2017-03-14 22:11:34 +05:30
Wen-Heng (Jack) Chung 508ad44c7c Revert "Changes to HIP to cope with Promote-free HCC"
This reverts commit 9043ba55db.

Change-Id: I20a9bab3883ad09913b320210344d37599cb8fcd


[ROCm/hip commit: 77e21dc09f]
2017-03-14 22:59:27 +08:00
Maneesh Gupta 5191fc0c5c Merge branch 'amd-master' into amd-develop
[ROCm/hip commit: 675dd1cedf]
2017-03-14 13:44:41 +05:30
Ben Sander 3b768fb36c Update hiphostregister test.
Move check to correct place.


[ROCm/hip commit: e7d6a34327]
2017-03-12 09:51:33 -05:00
Ben Sander a735ffa947 Update hipHostRegister debug and pointerTracker debug and notes
[ROCm/hip commit: 0a554f4dc1]
2017-03-11 09:18:27 -06:00
Ben Sander 3297a65b8f Fix copying of registered memory.
Set device properly so copying can recover context.
Enhance test to catch this case.


[ROCm/hip commit: 94c85fd4fc]
2017-03-11 09:18:27 -06:00
Maneesh Gupta a1ecc551aa Disable hipMemPtrGetInfo test on nvcc path
Change-Id: I864e571314abfe5ae614e6792c86d7b457c920ee


[ROCm/hip commit: 7a59103cea]
2017-03-08 16:16:08 +05:30
Aditya Atluri fe81d08987 Added new API, hipMemPtrGetInfo
1. This API returns memory allocation size of pointer
2. Added test to check its functionality

Change-Id: I87976d817b5a6ca5530336c09e7cb0420601cb2c


[ROCm/hip commit: 1546732604]
2017-03-07 13:46:29 -06:00
Wen-Heng (Jack) Chung 9043ba55db Changes to HIP to cope with Promote-free HCC
Squashed commit of the following:

commit c111b5bd10d7c2a5b0b1ad8b07f6e81185b47b39
Author: Wen-Heng (Jack) Chung <whchung@gmail.com>
Date:   Sat Mar 4 17:06:46 2017 +0800

    Use __device__ for all variables and functions to be used in kernel path

    Abolish __device and adopt [[hc]] in HIP implementation, so __device__ can be
    used on all HIP applications, no matter they are variables or functions.

    Change-Id: I20ca25857ce3bc3e42a5ebf65cafea2c8492f4c7

commit 30c0e4e4701bbf6bd9a7182e0320a71ff73d3a83
Author: Wen-Heng (Jack) Chung <whchung@gmail.com>
Date:   Thu Mar 2 12:14:11 2017 +0800

    XXX FIXME get around LDS spills caused in Promote-free HCC

    hipDynamicShared2 uses all 64KB of LDS for computation. But in Promote-free HCC
    there are cases where LDS spills would occur, which would make the test case to
    hang.

    In this workaround commit we reduce the size of dynamic LDS used to get around
    this known issue, and will revert this commit when LDS spills are resolved in
    HCC.

    Change-Id: If648b36200a4f9143951a8129192bcb7ed0bef5e

commit e803173be2d73e2f132a7ff7f61e7a20b4083d34
Author: Wen-Heng (Jack) Chung <whchung@gmail.com>
Date:   Wed Mar 1 21:41:41 2017 +0800

    Fix math functions which take pointer arguments

    Change-Id: I332c997e640edbc44824691e2a9434c6b3dadefa

commit de590c469e213c42090ff83dbd060f25bb1d6047
Author: Wen-Heng (Jack) Chung <whchung@gmail.com>
Date:   Wed Mar 1 18:38:54 2017 +0800

    Changes to cope with Promote-free HCC

    - abolish usage of address_space GNU attribute
    - use __device in file-scope global variables which would be accessed by GPU kernels
    - temporarily disable some math functions which take pointer arguments

    Change-Id: I730311dee848e20e763e35cd3980317fce0dce0d

Change-Id: I1f6b970b53b9401eeaaab08f04a7b9fed0fb8cf0


[ROCm/hip commit: efb9b9e86c]
2017-03-08 01:32:59 +08:00
Maneesh Gupta 3a726819e8 Disable some tests which are broken on nvcc path
Change-Id: I6f8df7687ff1798dc17f6c9b8a7f4cd029ce45d8


[ROCm/hip commit: a0b51c69a7]
2017-02-27 13:19:06 +05:30
Maneesh Gupta 2799863a54 Fix compilation of some broken tests on nvcc path
Change-Id: I92406af00c2de09d728e9b7f661c1f3873470560


[ROCm/hip commit: f1c3dd0dff]
2017-02-27 13:17:51 +05:30