Commit grafiek

1299 Commits

Auteur SHA1 Bericht Datum
TomSang b8cc5e4a33 SWDEV-299755 - Fix hiprtc failure on NV (#2341)
1. Add missing nvrtc lib.
2. Add context creation before call module(driver) api.
3. Remove obsolete saxpy_pch test.

Change-Id: I5add27ebabcf021fa3ef99d09004c5d13423a297

[ROCm/hip commit: de8bb09c29]
2021-09-14 13:37:56 +05:30
TomSang 40812160de SWDEV-298338 - Fix memory test failure on NV MGPUs (#2339)
1. Fix hipMallocManagedMultiChunkMultiDevice
Add device setting before kernel launching
Add stream sync

2. Fix hipMemcpyAtoH and hipMemcpyHtoA
Fix primary context initialization issue when device
is changed on cuda

Change-Id: I3fe6dbc35b7b24abb21ada297b7885df83d28152

[ROCm/hip commit: ae73179d40]
2021-09-14 13:37:46 +05:30
TomSang 588a6c250e SWDEV-299960 - Fix .hipTestAtomicAdd test on NV (#2338)
1. Add --gpu-architecture=compute_60 to fully support AtomicAdd()
2. Add atomicAddNoRet() for NV.

Change-Id: I5add28ebabcfa21fb3ef99d09004c5d13423a290

[ROCm/hip commit: 7dba6dc28e]
2021-09-14 13:37:30 +05:30
TomSang a5ba71000b SWDEV-299773 - Enable performance tests on NV (#2337)
1. Simply enable test on NV
   Some need minor fix
performance/compute/hipPerfDotProduct.cpp
performance/dispatch/hipPerfDispatchSpeed.cpp
performance/memory/hipPerfBufferCopyRectSpeed.cpp
performance/memory/hipPerfBufferCopySpeed.cpp
performance/memory/hipPerfDevMemReadSpeed.cpp
performance/memory/hipPerfDevMemWriteSpeed.cpp
performance/memory/hipPerfMemcpy.cpp
performance/memory/hipPerfMemset.cpp
performance/memory/hipPerfSharedMemReadSpeed.cpp
performance/stream/hipPerfDeviceConcurrency.cpp
performance/stream/hipPerfStreamCreateCopyDestroy.cpp

2. Enable and fix on NV
performance/compute/hipPerfMandelbrot.cpp
   Root cause: coordIdx is random
   Solution: Initialize coordIdx correctly
performance/memory/hipPerfMemFill.cpp
   Root cause: Hip ext Apis called.
   Solution: Exclude case with Hip ext Apis involved
performance/memory/hipPerfMemMallocCpyFree.cpp
   Root cause: Test allocates device memory more than GPU has.
   Solution: Allocate device memory in terms of GPU capacity.
tests/performance/memory/hipPerfSampleRate.cpp
   Root cause: Cuda has no operators += for float2 and float4.
   Solution: Provide the operators.
performance/stream/hipPerfStreamConcurrency.cpp
   Root cause:float4 format doesn't match cude.
              operators are missing in cuda lib.
   Solution: Use (x, y, z, w) format.
             Add necessary float4 operatoris for cuda.

Change-Id: I5add29ebabcfb21fb3ef89d09004c5d13423a291

[ROCm/hip commit: 9035ae3154]
2021-09-14 13:37:13 +05:30
TomSang f4aa2b9977 SWDEV-266829 - Enable more tests on AMD and NV devices (#2336)
* SWDEV-266829 - Enable more tests on AMD and NV devices

1. Enable tests on AMD and NV devices
  tests/src/runtimeApi/event/hipEventMultiThreaded.cpp
    Loops and threads per core are changed smaller so that test can
    finish in a shorter time.
  tests/src/runtimeApi/stream/hipStreamCreateWithPriority.cpp
    Fix logic error on how to get priority_normal

2. Simply enable test on AMD device
  tests/src/runtimeApi/memory/hipManagedKeyword.cpp
  tests/src/runtimeApi/module/hipManagedKeyword.cpp
  tests/src/runtimeApi/stream/hipStreamACb_MultiThread.cpp
  tests/src/runtimeApi/memory/p2p_copy_coherency.cpp

3. Simply enable test on NV device
 tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp

4. Fix typo
  tests/src/runtimeApi/stream/hipStreamAddCallbackCatch.cpp

5. Remove useless tests
 tests/src/hipC.c
 tests/src/hipHcc.cpp

Change-Id: Ia4406353e64d69bd34c58ebb56185701f7ce1caa

* Remove tests/src/runtimeApi/module/hipModuleLoadDataMultThreaded.cpp for cuda test

Co-authored-by: anusha GodavarthySurya <Anusha.GodavarthySurya@amd.com>
Co-authored-by: Jenkins <jenkins-compute@amd.com>

[ROCm/hip commit: 3fd16c0b5b]
2021-09-14 13:36:32 +05:30
Jatin Chaudhary 28cfed7879 SWDEV-296918 - Adding unsafe atomics test for gfx90a (#2331)
Change-Id: I3936e0b30e15aff154bdab3efe3f6da2ccce3578

[ROCm/hip commit: 6a09344dba]
2021-09-06 12:21:38 +05:30
Julia Jiang eec75aa436 SWDEV-286322 - remove unnecessary executable permission in some HIP files (#2329)
Change-Id: If992963761a73d709e08330bc36f2c979d5dcae9

[ROCm/hip commit: 56d6d27a6f]
2021-09-02 08:47:57 +05:30
TomSang 90927a5ec6 SWDEV-294589 - Fix hipCGMultiGridGroupType* failure on NV (#2326)
Fix the following failed tests on NV,
hipCGMultiGridGroupType
hipCGMultiGridGroupTypeViaBaseType
hipCGMultiGridGroupTypeViaPublicApi

1. Fix wrong logic in kernel for both AMD and NV.
2. Remove unnecessary hipDeviceSynchronize().
3. In hipCGMultiGridGroupTypeViaBaseType.cpp, change
   multi_grid_group as thread_group which is originally expected.
4. hipFree(syncResultD) is fixed as hipHostFree(syncResultD)
5. Optimize some host codes.

Change-Id: I3fe6dac35a7b14bab12adf397b7885df83d28059

[ROCm/hip commit: c57e0f8fe5]
2021-08-27 08:51:15 +05:30
TomSang e2da704d65 SWDEV-298459 - Fix cooperative_streams on NV (#2325)
Enable cooperativeGrps/cooperative_streams on NV.
Add test cases of the least/half/full capacity.
Verify data in terms of AMD/NV devices.
Optimize codes

Change-Id: I3fe6dbc35b7b24abb11adf297b7885df83d28154

[ROCm/hip commit: 67b3681d26]
2021-08-27 08:51:02 +05:30
Julia Jiang b84eef1623 SWDEV-286322 - remove unnecessary executable permission (#2323)
Change-Id: I61674df72bc1d42d4e0d56bf66f08abe85269697

[ROCm/hip commit: c2be66db76]
2021-08-25 16:57:22 -07:00
dkrottap 7645b365ac SWDEV-294643 - [catch2][dtest] Migration of Malloc related files to Catch2 (#2314)
Migrated malloc related files under memory folder into catch2 framework

Change-Id: I5aa07fc8148bdf6bef135947091aaf1d3c54663b

[ROCm/hip commit: 05e230f5c1]
2021-08-19 10:29:07 +05:30
Satyanvesh Dittakavi a9d21f04bf SWDEV-289401 - update hipEvent unit test (#2312)
Reduce the data size as unit tests are expected to take lesser time

Change-Id: Ic30be2ba3e0ff5fff19404b46163b79878716b70

[ROCm/hip commit: 6cc162f6cf]
2021-08-19 10:28:51 +05:30
TomSang 9363e6d504 SWDEV-294597 - Add more hipNormalizedFloatValueTex cases (#2310)
Add test cases for filter modes: hipFilterModePoint and hipFilterModeLinear

Change-Id: I3fe6dbc35a7b14aab12adf297b7885df83d28056

[ROCm/hip commit: 48d8040b06]
2021-08-19 10:28:14 +05:30
Harmen Stoppels e1924a2a9b Use perl from PATH, not from absolute shebang (#2304)
[ROCm/hip commit: 526d0bf97b]
2021-08-19 10:26:03 +05:30
arjun-raj-kuppala 361dbfd63a Jenkins pipeline code to enable external ci on develop branch (#2302)
* Create Jenkinsfile
* Temporarily disable hipModuleLoadDataMultThreaded test on nvidia

Change-Id: Id061e8a43cccdf0d944081268758b946d2448a6e

[ROCm/hip commit: 402211e28e]
2021-08-10 10:16:04 +05:30
Tao Sang 14b57fe882 SWDEV-294597 - Fix hipNormalizedFloatValueTex
Enable hipNormalizedFloatValueTex on AMD and NV.
Add thresh_hold for comparing data.

Change-Id: I3fe6dbc35a7b14aab11adf297b7885df83d28049


[ROCm/hip commit: 148f1bd59d]
2021-08-02 16:54:51 -04:00
DURGESH KROTTAPALLI 7e9e6f1729 SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy related apis.
Migrated all hipMemcpy related APIs to CATCH2 framework by optmizing
the code and moving the stress related tests to stress folder.

Change-Id: Id47669b49304c35d1a68fabdaaf3f6e3ab0428a5


[ROCm/hip commit: 346a77b4c0]
2021-07-31 00:48:43 +05:30
Satyanvesh Dittakavi 6c8eeb09d7 SWDEV-289401 - Catch2 tests for hip event APIs
Change-Id: I7c28f842282e07c21656fb92ddbb1a9ad32d752c


[ROCm/hip commit: 5816d20752]
2021-07-30 07:15:00 -04:00
Tao Sang 7ee9099c3e SWDEV-294586 - Fix hipDynamicShared failure on NV
1. In kernel/hipDynamicShared
 Fix shared memory size and type mismatch in host and kernel.

2. In kernel/hipDynamicShared2
Cuda kernels relying on shared memory allocations over 48 KB require
to explicitly set size using hipFuncSetAttribute().

Change-Id: I4248b6cebd3dc156f9d5d427e1897da22fb964ed


[ROCm/hip commit: 5b739b0373]
2021-07-29 16:59:25 -04:00
Satyanvesh Dittakavi aea8276876 SWDEV-295427 - Update hipStreamACb_StrmSyncTiming test inorder to fix random failures
Change-Id: I5167fba79338fd2fdd059a9ad83007570bae46be


[ROCm/hip commit: 80d2fee4d8]
2021-07-29 12:32:57 -04:00
Tao Sang 9de024b109 SWDEV-294591 - Fix hipEventIpc failure on NV
Remove unnecessary codes

Change-Id: I4248b2cebd3dd156f9d5d427e1897da22fb964ec


[ROCm/hip commit: ec7e25b7e0]
2021-07-29 10:16:07 -04:00
kjayapra-amd e09c01f27a SWDEV-292175 - Use gfx90a guards around image kernel device library call.
Change-Id: I29aaac940c75fcab0cddbc263d60c0076ea76068


[ROCm/hip commit: f61dff826a]
2021-07-29 06:55:18 -04:00
Jatin Chaudhary e6ff99b52b SWDEV-289409 - minor fixes for hipStream tests
Change-Id: I68288f33724b636715ee732e9044f82790e5da47


[ROCm/hip commit: cc7237d27d]
2021-07-29 02:04:31 -04:00
Tao Sang 010d54c0ee SWDEV-294591 - Fix hipEventIpc failure on NV
make hipIpcOpenEventHandle has the same behavour of cudaIpcOpenEventHandle.
Add Api usages.

Change-Id: I4248b2cebd3de156f9d5d427e1797da22fb964eb


[ROCm/hip commit: c053d60282]
2021-07-28 15:28:39 -04:00
Tao Sang dc2b51cbc9 SWDEV-294594 - Enable hipPointerGetAttributes test on NV
Change-Id: I3fe6dbc45a7a149a9109df297b7885df83d2804d


[ROCm/hip commit: 5a0b463d60]
2021-07-28 08:59:34 -04:00
Anusha GodavarthySurya 365f1949fc SWDEV-240806 - Update graph test to use hipGraphGetNodes, hipGraphGetRootNodes and hipGraphAddDependencies
Change-Id: I33249d2b625d8ff03c9fe4a71a541cac5fef9d24


[ROCm/hip commit: 08aa662166]
2021-07-27 02:12:26 -04:00
Tao Sang 1dcac5ba79 SWDEV-294596 - Fix module test failure on NV
Remove unecessary codes

Change-Id: I4248b2cebd3de156f9d5d427e0697da22fb964ea


[ROCm/hip commit: a0b301089c]
2021-07-25 21:21:12 -04:00
Tao Sang 927bc28565 SWDEV-294596 - Fix module test failure on NV
1.Fix hipModuleNegative failure on all NV GPUs
a.Add signal handler for signal sent by cuda functions.
b.Make hipModuleGetGlobal match cuModuleGetGlobal behavour.
That is, if one of the first two parameters is nullptr, ignore it.

2.Fix hipModuleLoadDataMultThreaded failure on NV RTX5000
Improve lamda function.

Change-Id: I3fe6dbc35a7a14aa9119df197b7885df83d28047


[ROCm/hip commit: ae30c5cd6b]
2021-07-23 22:04:19 -04:00
Rahul Garg 0991ef704b SWDEV-293742 - Update copyright year
Change-Id: I4248b2cebd3de056f9d5d417e0697da22fb964ef


[ROCm/hip commit: da2c352eb3]
2021-07-23 07:13:33 -04:00
Sourabh Betigeri 23ae8bedd1 SWDEV-292523 - [hip]Change in the signature of streamOperations APIs, particularly 'value' arg to unsigned 'value
Change-Id: If97e3de553dfef19c8bf2d9797a6c68ec94a0ff6


[ROCm/hip commit: 6deaba3fa7]
2021-07-22 15:35:06 -04:00
Jatin Chaudhary c604ee36c7 SWDEV-289409 - Add hiprtc tests
Change-Id: Ib26527b704aed32ae3f3ed38bf6e2fd412462c8e


[ROCm/hip commit: 25f1caac8b]
2021-07-22 00:34:53 -04:00
Tao Sang 71a65de1e4 SWDEV-294588 - Enable NV printf DTests
Enable NV printf DTests as many as possible.
Fix the bugs due to behavour difference between
Hip-Rocclr and Cuda.
Add hipLimitPrintfFifoSize.

Change-Id: I3fe6dbc35a7a140a9919df197b7885df83d28049


[ROCm/hip commit: 586165ebc2]
2021-07-20 21:22:11 -04:00
DURGESH KROTTAPALLI 63e3233c20 SWDEV-292393 - [catch2][dtest] hipMemcpyAtoH and hipMemcpyHtoA APIs to catch2
Migrated functional and negative scenarios of
hipMemcpyAtoH and
hipMemcpyHtoA APIs to catch2 framework

Change-Id: I68bb37d99fc371b8803e64ebf1533c0870b14fab


[ROCm/hip commit: bdc90769fb]
2021-07-20 18:08:17 +05:30
sumanthtg 9c17929ae4 SWDEV-238517 - [dtest] Catch2 unit tests for device files.
Changes contain Device files under "hip/tests/src/runtimeApi/device" migrated to Catch2 and some additional device tests.

Change-Id: Ie88adc3c32c2079456b14e029cfc6c319b48d8f6


[ROCm/hip commit: 44e1ae449a]
2021-07-19 13:38:30 -04:00
Aaron En Ye Shi 26cf8d399e SWDEV-292904 - Extend HIP coherency tests to gfx940
Change-Id: I54d57572d55c302ebaed29c7e11570e3d1b44a8e


[ROCm/hip commit: 9fbd19a675]
2021-07-19 12:13:53 -04:00
Tao Sang d33b577c95 SWDEV-266829 - Enable more NV DTests
Enable NV DTests as many as possible.

Change-Id: I3fe6dba35a7a140a9a19df197b7885df83d28044


[ROCm/hip commit: 4b5468e8e6]
2021-07-19 11:07:43 -04:00
Tao Sang f985ba8b26 SWDEV-295037 - Fix passed() in DTests
passed() should not call exit(0) which will prevent object
destructor being called.

Change-Id: Ibaee0d85cb616727dc5db557bb9422702670b688


[ROCm/hip commit: c74e2da333]
2021-07-19 10:59:04 -04:00
Tao Sang 65dbac4ec0 SWDEV-294582 - Fix hipStdComplex in NV
Use cuda::std instead of std name space for complex
operations.

Change-Id: I43b23384ac7a129fcd7f41204f796105576cd628


[ROCm/hip commit: 63586279ba]
2021-07-19 10:50:11 -04:00
Sarbojit Sarkar 7a3041916e SWDEV-289406 - Occuancy test migration
Change-Id: Ic6bce9bbad908bd210727f9981f7a3fc750a91ed


[ROCm/hip commit: 56ed52e69a]
2021-07-19 06:15:00 +00:00
DURGESH KROTTAPALLI 335b548220 SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy2DFromArray and hipMemcpy2DFromArrayAsync apis.
Added functional and negative scenarios for hipMemcpy2DFromArray and
hipMemcpy2DFromArrayAsync APIs

Change-Id: I269499b1d538affd505d9f529e7516cb3aa17863


[ROCm/hip commit: f6e9d2491b]
2021-07-16 16:03:00 -04:00
Tao Sang 872b6abec3 SWDEV-295381 - Fix hipSimpleAtomicsTest
Fix hipSimpleAtomicsTest failure on amd and nvidia devices.

Change-Id: I43b23384ab70129ccd7f41204f796105576cd605


[ROCm/hip commit: a2fdc8cfbd]
2021-07-15 20:45:51 -04:00
Jatin Chaudhary d89d622678 SWDEV-283267 - Add rtc document and remove hip header from tests
Change-Id: I43a23384ab70128ccd7f41204f796105576cd604


[ROCm/hip commit: b337a5586b]
2021-07-14 11:00:38 -04:00
Rupam Chetia 3600e2f472 SWDEV-230423 - [dtest] Adding Stress tests.
http://ontrack-internal.amd.com/browse/SWDEV-230423

1. Moving stress folder from hip/test/src to hip/test.
2. Adding Stream stress tests.
   These stress tests create multiple streams and launches kernel on them
   in multiple combinations for 100000 iterations. These tests will test
   the stability of streams created using hipStreamCreate, hipStreamCreateWithPriority
   and hipStreamCreateWithFlags.
3. Adding printf stress tests using simple kernels.
4. Adding printf stress tests using a complex kernel.

Change-Id: Idcd26707fb9504ab8dbe6cebcbb32ade61bf1483


[ROCm/hip commit: 1b53e0c51c]
2021-07-14 04:40:30 -04:00
Anusha GodavarthySurya 73a73db651 SWDEV-240806 - Added Implementation for few more graph APIs
Change-Id: I1e443cf1b4e3a1e85f6fb9c1db8fdfa7c1fdfe06


[ROCm/hip commit: 6e7ea5b612]
2021-07-14 01:58:03 -04:00
DURGESH KROTTAPALLI 218691ef48 SWDEV-292393 - [catch2][dtest] hipMemcpy2D related dtests to catch2 framework
Migrated functional and negative scenarios of
hipMemcpy2D and
hipMemcpy2DAsync APIs to catch2 framework

Change-Id: I339f0914cc76fee194fff53dd9686b0c16d85af9


[ROCm/hip commit: b77fe6cc9f]
2021-07-14 00:04:27 +05:30
DURGESH KROTTAPALLI d676a01431 SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy3D and hipMemcpyParam2D APIs
Added functional and negative scenarios for
    hipMemcpy3D and
    hipMemcpyParam2D APIs in catch2 framework

Change-Id: I3473eb952c23aba6bc500d78ca93d52a9f7a5d6f


[ROCm/hip commit: aa6b01f793]
2021-07-13 12:22:43 -04:00
sumanthtg 8a5b1e02a5 SWDEV-238517 - [dtest] Catch2 multiprocess tests for device files.
Changes contain Catch2 device multiprocess tests which were covered under "hip/tests/src/runtimeApi/device" and some additional tests. These test files makes use of fork call or sets visible devices env variable and validates various device aspects.

Change-Id: Iaaca37598d386104da9e5f37f92ab176bc8a2845


[ROCm/hip commit: 6a8fd2b762]
2021-07-13 08:42:41 -04:00
DURGESH KROTTAPALLI 2c72166ff8 SWDEV-292393 - [catch2][dtest] Tests for hipMemcpyPeer and hipMemcpyPeerAsync APIs.
Added functional and negative scenarios for
hipMemcpyPeer and
hipMemcpyPeerAsync APIs

Change-Id: Ibaee0d84cb616727dc5db057bb9422702670b686


[ROCm/hip commit: 48c2a0fb27]
2021-07-09 01:06:30 -04:00
Anusha GodavarthySurya 6bbe132eb7 SWDEV-240806 - Enable graph test on nvidia platform
Change-Id: Ia196dd7c650693155f786871671aec4dda0e886f


[ROCm/hip commit: 9c9b62f0b8]
2021-07-08 23:27:20 -04:00
DURGESH KROTTAPALLI 60857ec7cf SWDEV-292393 - [catch2][dtest] Tests for hipMemcpy2DToArray and hipMemcpy2DToArrayAsync apis.
Added functional and negative scenarios for hipMemcpy2DToArray and
hipMemcpy2DToArrayAsync APIs

Change-Id: I97331a587fb1d51583faeec998cdb4ac09bfa564


[ROCm/hip commit: edb1a96cdb]
2021-07-08 04:22:43 -04:00