Gráfico de commits

380 Commits

Autor SHA1 Mensaje Fecha
TomSang c21a3f06ad SWDEV-302654 - Fix cooperative_streams_half_capacity (#2376)
Fix random failure of cooperative_streams_half_capacity by adding HIPCHECK(hipSetDevice(dev))

Change-Id: Ic4baf10a2c69f981aa7134a999c4779642852f53

[ROCm/hip commit: 57f6cd0827]
2021-10-06 17:27:39 +05:30
TomSang 3aa91ecfd7 SWDEV-299966 - Enable texture test (#2340)
Enable the following test directed_tests/runtimeApi/module/hipModuleTexture2dDrv --tests 0x14

Change-Id: I98eabb7412f615733a999bf5e89c2c80b91cfbb2

[ROCm/hip commit: b05a0503f1]
2021-10-06 17:23:33 +05:30
Julia Jiang 3d53651d31 SWDEV-286322 - remove unnecessary executable permission (#2362)
Change-Id: Iebcac3f717ed916554d57a4b839d27b0427efd84

[ROCm/hip commit: c61bbcce35]
2021-09-24 16:28:03 +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 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
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
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
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
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
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
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
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
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
Anusha GodavarthySurya 51a500812e SWDEV-240806 - updated hipMemcpyKind in nvidia tyes from enum to typedef
Change-Id: Id6a100257d47211cc9868ba84a2964302e4f069c


[ROCm/hip commit: 4025725ed6]
2021-07-08 02:54:36 -04:00
agunashe a4ff63a29b SWDEV-293742 - Update copyright end year
Change-Id: I2cb7bbd9a6d9da28116ba9dd9cec4e60525444e2


[ROCm/hip commit: d529637fbc]
2021-07-07 12:57:23 -04:00
Satyanvesh Dittakavi cac5c6a37c SWDEV-292618 - Enable/Fix more dtests on Nvidia Platform
Change-Id: I0fdac4ddefa693674dfce66ba29306f34ad886c9


[ROCm/hip commit: f5703d57cd]
2021-07-07 03:23:42 -04:00
Satyanvesh Dittakavi 7a49cdb7a0 SWDEV-292618 - Enable/Fix few of the dtests on Nvidia Platform
Change-Id: I6f4e37b293aac9054a768f9d692b914f52d42756


[ROCm/hip commit: 57569c62f4]
2021-06-30 01:23:29 -04:00
Anusha GodavarthySurya 1b0be33247 SWDEV-240806 - Enable hipgraph test on amd platform
Change-Id: I470a9c410704ec2074eb32030311df671da5e8bb


[ROCm/hip commit: 7c5afff964]
2021-06-22 01:41:25 -04:00
Tao Sang f37d157aaf SWDEV-291009 - Fix LaunchCoopMultiKernel on NV
Fix compiling error of hipLaunchCoopMultiKernel on
NV A100.
Fix test failure on all NV devices.

Change-Id: Iba20caa0e9021480378625506197384c275a3289


[ROCm/hip commit: f70b109cc3]
2021-06-18 09:07:17 -04:00
Tao Sang 5000aa0f9b SWDEV-291011 - Fix ModuleLaunchKernel on NV
Should not add extra for non-parameter dummyKernel()
in hipModuleLaunchKernel()

Change-Id: If6f881ebb027bd3e8435d3de5295b00277e96a6a


[ROCm/hip commit: 87ba31e596]
2021-06-16 11:52:38 -04:00
Vladislav Sytchenko f112ad301e Revert "SWDEV-255979 - Enable __managed__ test for amd platform"
This reverts commit bbd07b0bd9.

Change-Id: Ib1be007535dcfb24d9e4eddbdb706d3be4acc20c


[ROCm/hip commit: 88242ad446]
2021-06-01 17:37:30 -04:00
Anusha GodavarthySurya 878ce92905 SWDEV-255979 - Add support for dynamic __managed__ variables
Change-Id: I62b790853ea3ab3b7ac57bab389046c627fdecce


[ROCm/hip commit: d9fffacfb3]
2021-06-01 05:09:51 -04:00
Anusha GodavarthySurya bbd07b0bd9 SWDEV-255979 - Enable __managed__ test for amd platform
Change-Id: I0cb31c1983e68e9010340770a56fc45b2a619dcd


[ROCm/hip commit: e519600383]
2021-05-31 05:35:05 -04:00
Satyanvesh Dittakavi c61110559f SWDEV-286231 - Fix hipMallocManaged tests failure
Test is modified as hipMemAttachHost is accepted now by hipMallocManaged

Change-Id: If73d210297cde7a92960eef57a902dbd6402a173


[ROCm/hip commit: da9564e302]
2021-05-31 04:10:47 -04:00
Satyanvesh Dittakavi a951797224 SWDEV-286830 - Fix hipStreamACb_ThrdBehaviour on windows
use sleep_for which works cross-platform
for other tests as well

Change-Id: I915444d620e9fad0b9eda93bcdd244f9956ab8d5


[ROCm/hip commit: 03ae7251de]
2021-05-24 03:18:36 -04:00
Satyanvesh Dittakavi cbc620f5e7 SWDEV-278464 - Update unit test hipEventMultiThreaded
Run with multiple threads to catch possible race condition
Disable running the test by default on CI as this takes lot of time

Change-Id: I1c1a66fd5c72f8d2bf7ad120461384488b46abbd


[ROCm/hip commit: f300d11931]
2021-05-21 02:57:14 -04:00
Julia Jiang 6bef7b2b86 SWDEV-286322 - Fix EOL in files
Change-Id: I1746e80aceeeaa4fc5df65c858f4816d99010186


[ROCm/hip commit: f8a08e2429]
2021-05-19 14:48:53 -04:00
Sourabh Betigeri 31089e6ce9 SWDEV-282354 - Some AMD GPUs cause clock64() to roll over faster, this changeset prevents infinite loops due to that.
Change-Id: I19d026073afa16104ffbee4705b74d37003a04d9


[ROCm/hip commit: 6bcbb61e5f]
2021-05-11 20:40:23 -04:00
Anusha Godavarthy Surya a76f840701 SWDEV-240806 - Initial commit for hipGraph and stream capture infrastructure
On StreamBegincapture captures the parameters passed to APIs and respective node will be created and added to graph
All parameters are passed to STREAM_CAPTURE macro, it checks if stream in capture mode and redirects the call to the capture function and returns
Updated hipStream and hipEvent with capture parameters
Added handling for hipStreamBeginCapture & hipStreamEndCapture

Change-Id: Ic8926a7b4336c2cc81f0b3a9a224aa392c474134


[ROCm/hip commit: c35ba37287]
2021-05-07 17:38:16 -04:00
Ravi C Akkenapally d5ee250204 SWDEV-281998 - TEST: StreamOperations : Split StreamWait and Update into two seperate threads
Change-Id: I0fda25857dd9f097f36ce1bafedb7689ca2beecc


[ROCm/hip commit: db7421cb10]
2021-05-07 11:11:28 -07:00
Aaron En Ye Shi 34625c7a88 SWDEV-283930 - Fix bugs in HIP Tests on Windows
Windows doesn't have headers unistd.h, sys/wait.h, so
remove them for _WIN64. Also, Windows doesn't have rand_r
so define it. Fixes builds for HIP tests:
d2dMemCpyWithPinnedHostMemory, hipMemset3DFunctional,
hipModuleLoadMultProcessOnMultGPU,
hipModuleLoadUnloadStress, hipModuleNegative,
hipStreamACb_ThrdBehaviour, hipMemcpyNegativeMThrdMSize,
hipStreamACb_MStrm_Mgpu, StreamAddCallback,
hipStreamACb_StrmSyncTiming, hipStreamACb_MultiCalls,
hipMallocConcurrency, hipMemset3DRegressMultiThread,
and hipSetGetDevice.

Change-Id: Id2f98d664716026c590d879e464ba467d4c071be


[ROCm/hip commit: 9edd31100d]
2021-04-30 21:38:45 +00:00
Satyanvesh Dittakavi a2b81ae792 SWDEV-278464 - Unit Test For Suspected race condition
Change-Id: I561ec3073a6e6813c5f7aa50983fcf098c6ac54a


[ROCm/hip commit: 98d1acf1f2]
2021-04-29 23:40:43 -04:00
Tao Sang bed2381766 SWDEV-283515 - Fix crashing in kernel launch on MGPUS
Fix wrong mixing of current device and stream device in
ihipModuleLaunchKernel() and hipLaunchCooperativeKernel().

Fix missing hipSetDevice() in hipMemcpyWithStream* tests.

Change-Id: I09333bb40d239bb42c832df5ea16d17eeaeff5e7


[ROCm/hip commit: a95ff95bf7]
2021-04-29 14:46:47 -04:00
German Andryeyev c7e4a8c30a SWDEV-240804 - Check the managed capability
Some system have HMM disabled. Check the capability before running the test.

Change-Id: I098d04d87c12ec317b4cb57e121e702b6bba03bc


[ROCm/hip commit: b777f4f010]
2021-04-26 14:10:57 -04:00
DURGESH KROTTAPALLI 88ca345e3a SWDEV-273550 - Add Directed Tests for HIP APIs
[dtest] Tests for hipMemcpy2DFromArray
        and hipMemcpy2DFromArrayAsync APIs

1. Negative scenarios for both the APIs
2. Functional size check scenarios for both APIs
3. Invoke the API from Peer Device Context
4. Simple scenarios for both APIs
5. Pinned Host Memory from same & multi GPU

Change-Id: I80c84ec3f9722d18683d31be65caa1bd64054da6


[ROCm/hip commit: b36936645d]
2021-04-23 13:07:08 -04:00
Rahul Garg b384753745 SWDEV-229520 - Reenable hipEventIpc test
Change-Id: Ib40fb07a07cc447182e23664573c5e37a1194a32


[ROCm/hip commit: f2c96993e1]
2021-04-21 13:55:15 -04:00
Tao Sang abcbcee510 SWDEV-279657 - Fix hipMallocManaged-N256M failure
Add concurrentManagedAccess detection in hipMallocManaged test.
Skip test when device doesn't support concurrentManagedAccess.

Change-Id: Ie54046feef3baba857a7068972ec1fc1a60c2dfd


[ROCm/hip commit: 60e2b1299c]
2021-04-20 09:07:31 -04:00
sumanthtg 63ae7621ae SWDEV-238517 - [dtest] Additional Tests for hipHostMalloc()
New Tests added for
 - hipHostMalloc() api.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id237ab6cd2445216cd7bd9b8189c22a36ad66b7c


[ROCm/hip commit: 9c86e4a8f5]
2021-04-20 00:44:30 -04:00
Sourabh Betigeri 4c043fc89f SWDEV-256723 - Added group partitioning feature in ROCm CG.
Change-Id: Ie54046feef3baba857a7068972ec1fc0a60c2df9


[ROCm/hip commit: 70af64121b]
2021-04-19 18:53:17 -04:00
DURGESH KROTTAPALLI 38ddfaefbb SWDEV-273550 - Tests for hipMemcpyAtoH and HtoA
[dtest] Tests for hipMemcpyAtoH & hipMemcpyHtoA APIs

1. hipMemcpyAtoH/hipMemcpyHtoA negative scenarios
2. hipMemcpyAtoH/hipMemcpyHtoA Functional scenarios

Change-Id: Iec5b339db7fdde2592390c1f56ab6cf31131d4c8


[ROCm/hip commit: 03a0c84ad4]
2021-04-19 08:48:15 -04:00
sumanthtg 578ce42bc5 SWDEV-278967 - Changes to handle dtest failures on cuda runtime version 11.2
Change-Id: I79c87d40b77b4e4beb7e3d0a9ea396ad918a81e8


[ROCm/hip commit: 5476c9877b]
2021-04-14 12:38:46 -04:00