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

1183 Коммитов

Автор SHA1 Сообщение Дата
Vladislav Sytchenko 11ad5689db SWDEV-232428 - Fix HIP printf tests on Windows
On Windows there's something fundamentally broken about redirecting IO
into a file and then restoring that said IO to it's original state. Even
though no syscalls would fail, the output would sometimes either go into
CLI or straight up nowhere.

Simply using pipes instead of a temporary file magically resolves the
above issue ¯\_(ツ)_/¯

Unfortunately the max pipe size on Linux is 1Mb, which is not enough to
store all the data printed by the kernel. This leads to a softhang in
vprintf().

Stick to using a temporary file on Linux, but switch to pipes on
Windows. Slightly refactor the CaptureStream struct to accomadate this
difference.

Change-Id: Id8e68f150df47815a4f652ee2bcd6cfb7c3e3bac


[ROCm/clr commit: 55377dfee2]
2021-03-08 18:12:42 -05:00
Vladislav Sytchenko a38929b879 SWDEV-232428 - Fix hipPrintSpecifiers test failure on Windows
The following snippets has different behaviour based on platform.

printf("%p", 0x123abc);
Linux   -> 0x123abc
Windows -> 123ABC

printf("%p", nullptr);
Linux   -> (nil)
Windows -> 0000000000000000

%p specifier according to C spec is implementation defined, so we need
to adjust the reference string to be correct on Windows.

Change-Id: I7059fa0f6cde611718bd76655637670fcbccf43c


[ROCm/clr commit: 4dd4d8c05f]
2021-03-08 18:11:33 -05:00
Tao Sang 7c5373dbdc SWDEV-274725 - Enable hiprtc test
Enable hiprtc test for Rocclr.
Remove unnecessary LINK_OPTIONS hiprtc.

Change-Id: I9ec74c475161b3e31df47d193449023e921f2923


[ROCm/clr commit: cc086cb08c]
2021-03-04 15:07:38 -05:00
kjayapra-amd 2b715e4826 SWDEV-259566 - Adding support to retrieve handle for offsetted pointer.
Change-Id: I5da5ab6a24c6df915950637feb486b8c288e60e0


[ROCm/clr commit: 8ef68df3a8]
2021-03-04 12:28:56 -05:00
Sarbojit Sarkar dcca6fe956 SWDEV-267199 - hipMalloc test issue on centOS
Change-Id: I789516e2bf921ffd3577f97571e33bcc08047849


[ROCm/clr commit: 7d6bf9fb97]
2021-03-03 11:47:13 -05:00
Ravi C Akkenapally 4cf7a5799a SWDEV-179105 - Stream Operations: Add swqupport for Wait and Write
Change-Id: I9d6d0665d12b62fe705ce1569a0e8264a4f23ab7


[ROCm/clr commit: fd0f49503f]
2021-03-02 12:15:46 -08:00
Tao Sang 2a6f45533d SWDEV-270973 - Add missing copyright headers
Change-Id: I6bb27650f74372dae6e29c79fd6bb2022cc062fe


[ROCm/clr commit: 4048db950c]
2021-03-01 19:46:24 -05:00
Satyanvesh Dittakavi 4f7df3c396 SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96


[ROCm/clr commit: 3abd25b1e9]
2021-02-25 04:54:27 -05:00
DURGESH KROTTAPALLI 781a11c2ae SWDEV-238517 - Enhancing hip unit tests
[dtest] Tests for hipEvent related APIs

Added Negative scenarios for hipEvent related APIs

1. Verifying all hipEvent related APIs by passing nullptr.
2. Pass illegal/unknown flag to hipEventCreateWithFlags API

Change-Id: Ia0a24065d16fe0f5ee28a88e280c25c1be0c3590


[ROCm/clr commit: 2a0593258c]
2021-02-24 06:29:26 -05:00
Tao Sang 06a085377d SWDEV-272088 - Fix runtimeApi/event/hipEventElapsedTime issue
runtimeApi/event/hipEventElapsedTime will report invalid resource error
on cuda due to wrong calling sequence. The fix will arrange the calling
in right sequence.

Change-Id: I3db28a962888566ea135e3cbdefa68d373e2d369


[ROCm/clr commit: b9cf12e920]
2021-02-23 12:36:40 -05:00
Tao Sang ae1db33145 SWDEV-272089 - Shorten memory test time
memory/hipMalloc_MultiThreaded_MultiGpu costs too much time to finish.
    1 GPU: about 1000s, 2 GPUs: about 2200s
But Jenkin build need quick return and ctest will kill test that last
1500+s. So we need shorten the test time.

Change-Id: I3db27a962808566ea135e3cbdefa66d373e2d369


[ROCm/clr commit: 657a515e60]
2021-02-22 18:01:00 -05:00
Tao Sang fc6ff00574 SWDEV-273484 - Fix static lib build failure
Exclude gcc/LaunchKernel from static lib as
it's shared lib test case only

Change-Id: I3db17a962808565ea135e3cbcefa66d373e2d364


[ROCm/clr commit: f055582473]
2021-02-19 17:11:26 -05:00
agodavar 601d2453be SWDEV-255979 - Added support of __managed__ static variable
Change-Id: I9d5cbbecc8c19ec38a95c94ab4130465ba76c102


[ROCm/clr commit: d5b4762d96]
2021-02-17 13:01:29 -05:00
Rupam Chetia 322818430d SWDEV-238517 - [dtest] Adding new test case to validate hipDeviceProp_t arch values
1. Added 1 scenario to validate value of deviceProp.arch.has* with
value of __HIP_ARCH_HAS_* device flag.

SWDEV-238517 - Enhancing hip unit tests

Change-Id: Idb237a76b75180ce77808853a5351f19077a0d33


[ROCm/clr commit: a28c367ed0]
2021-02-17 03:23:42 -05:00
Sarbojit Sarkar e919fb467d SWDEV-272769 - Enabled gcc based hip test
Change-Id: I48bc850df00848bf11de71e3f614273111d31b47


[ROCm/clr commit: ed7f4560cf]
2021-02-16 21:20:00 -05:00
Tao Sang 18ec4c7268 SWDEV-272089 - Fix concurrent memory test failure on CUDA
Change-Id: Ibf35c789d6bd4279bdcedba1a6e057639c258489


[ROCm/clr commit: 5039649dd4]
2021-02-16 10:00:23 -05:00
Rupam Chetia 22c580bac8 SWDEV-238517 - [dtest] Test for Multiple Target Architecture Code Object
Added a test to generate a code object for multiple target
architectures (including for the current device),
load and execute the kernel.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I509d01124abdc0495cfc770ab5508738f108c91c


[ROCm/clr commit: 05409f05d0]
2021-02-15 06:41:24 -05:00
cjatin c31897edcf SWDEV-252745 - Adding rtc options transformer
Change-Id: Ib250689906a35f81255398e53da979774361dbfa


[ROCm/clr commit: caf9b2b108]
2021-02-09 13:35:30 -05:00
cjatin c2216ca46f SWDEV-269879 - Adding function that recommends optimal thread count
Change-Id: I42eb94a058c1b7f9253182e16ff1c3389a836d61


[ROCm/clr commit: d9496c149b]
2021-02-09 13:34:08 -05:00
Satyanvesh Dittakavi 7e95883cfc SWDEV-269439 - Fix dtests build failure on HIP CUDA
Change-Id: Ibdba5d364df1bcd3b9e158e22a602dd993044d7a


[ROCm/clr commit: 45e5d6aa67]
2021-02-08 17:09:49 -05:00
Tao Sang a1c44ebfac SWDEV-271406 - Remove unecessary hip_ext.h
tests/src/runtimeApi/module/hipModuleLaunchKernel.cpp doesn't
need hip_ext.h which will fail cuda building. So remove it

Change-Id: Icf5763449ccec839d9efda90ffe3a86fb53bdb85


[ROCm/clr commit: a6176099cf]
2021-02-08 14:33:04 -05:00
Julia Jiang 0e20fbfbec SWDEV-271416 - Remove HIP_DYNAMIC_SHARED macro in hip
Change-Id: I12f39ea8438eb7ce76d8ffb2151b4faa93689048


[ROCm/clr commit: e4fdbfcf5b]
2021-02-08 13:17:46 -05:00
kjayapra-amd 81c1c29bc4 SWDEV-270007 - Fixing the hipMemoryAllocateCoherent test binary path for hipMemoryAllocateCoherentDriver test path.
Change-Id: Iae5363685d10fce32ff80ac5d6bfba460dc2b574


[ROCm/clr commit: d13124d90f]
2021-01-28 09:47:01 -05:00
agodavar 53a0b62f82 SWDEV-268552 - HIP sample segfaults during hipModuleLoad, fix mmap bug
Change-Id: I51c6061e7ac6b2524586d96fdd69b9f084b1906a


[ROCm/clr commit: 2d2f127b8a]
2021-01-27 23:39:50 -05:00
DURGESH KROTTAPALLI 80f1fdb5b7 [dtest] Kernel Execution time fix for hipExtLaunchKernelGGL and hipExtModuleLaunchKernel API's
Fix for kernel execution time using clock rate

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id06df31387ecab96f219e0c1fbcdda1609f75605


[ROCm/clr commit: d27db0f038]
2021-01-15 01:58:22 -05:00
Tao Sang c42df761a3 Fix failure for g++/hipMalloc test
Fix hardcoded /opt/rocm

Change-Id: I1ae48567eafd749d6c25bca204c1724b026be21f


[ROCm/clr commit: 12c976ef63]
2021-01-11 11:46:17 -05:00
Rahul Garg f169546403 Add IPC Events support
Change-Id: Iac2bf3d5e1d9a993bebbb066c20d300d6f05558b


[ROCm/clr commit: 3829645039]
2021-01-08 20:09:26 +00:00
Tao Sang eeb275d643 Remove hip-hcc codes: Part four
Remove __HCC__, __HCC_ONLY__, __HCC_CPP__, __HCC_C__,
__HCC_OR_HIP_CLANG__, __HIP_ROCclr__ and their guarded codes.

Remove Hcc codes from directed_tests and samples.

Remove __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__ from
some files where they are not necessary.

Add deprecation notice.

Change-Id: I1ae467eafd749d6c25bca204c1724b026be21fce


[ROCm/clr commit: d504a761ad]
2021-01-08 10:53:34 -05:00
DURGESH KROTTAPALLI da309a2db5 [dtest] Tests for hipExtLaunchKernelGGL APIs
Added test scenarios for hipExtLaunchKernelGGL
1. verify kernel execution time using events
   passed through argument
2. Verify the API by disabling time flag in
   event creation.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I755adc34a25c58b68041fc927bbffd2a9e6eafde


[ROCm/clr commit: ec794ae051]
2021-01-08 00:16:54 -05:00
DURGESH KROTTAPALLI 04e34656af [dtest] Tests for hipExtModuleLaunchKernel APIs
Added test scenarios for hipExtModuleLaunchKernel/hipModuleLaunchKernel APIs

 1. Negative Test Scenarios for hipExtModuleLaunchKernel API
 2. Negative Test Scenarios for hipModuleLaunchKernel API
 3. hipExtModuleLaunchKernel API Concurrency Verification
    using global variable
 4. hipExtModuleLaunchKernel API Concurrency Verification
    using total time taken by kernels.
 5. hipExtModuleLaunchKernel API verifying the kernel execution time
    of a particular kernel
 6. hipExtModuleLaunchKernel API verifying by disabling the
    time flag during event creation

SWDEV-238517 for enhancing hip unit tests

Change-Id: I33bbab152d47beba62065c461a07cbcacdc01d97


[ROCm/clr commit: a57968fba9]
2021-01-08 00:05:57 -05:00
Rupam Chetia 5ed7280a01 [dtest] Enabling all negative tests for hipModule* APIs
Enabling all negative test cases for amd as they are functional now
SWDEV-238517 for enhancing hip unit tests

Change-Id: I0bdbf8c192ef94588403c8f027c0399dd5480a00


[ROCm/clr commit: 5ba7259ffc]
2021-01-07 23:50:56 -05:00
Rupam Chetia 92ab949465 [dtest] Additional tests for hipDevice APIs
APIs: hipDeviceGetAttribute(), hipGetDeviceProperties(),
      hipDeviceGetByPCIBusId() and hipDeviceGetPCIBusId()
1. New negative test cases for each API.
2. Additional attributes for testing with hipDeviceGetAttribute()

SWDEV-238517  Enhancing hip unit tests

Change-Id: I3c24462426ffaf3a9317b7de9cd33f7c65791a4b


[ROCm/clr commit: 328f8ab0ff]
2021-01-07 23:29:14 -05:00
DURGESH KROTTAPALLI fcdded139b [dtest] Enhanced tests for hipGetDeviceCount hipSetDevice and hipGetDevice
Added following functional and negative scenario tests for
HIP_VISIBLE_DEVICES (HVD), ROCR_VISIBLE_DEVICES (RVD)
CUDA_VISIBLE_DEVICES(CVD)
1. Verifying HVD and RVD - invalid number in sequence
2. Verifying HVD and RVD - dupliates in the beginning of sequence
3. Verifying HVD and RVD - all the duplicates
4. Device count with RVD(max devices and HVD(min devices)
5. Device count with RVD(min devices and HVD(max devices)
6. Device count - RVD(set), HVD(unset), CVD(set)

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ia83e9e9068cbf8cc61cff17311cda1d1f8a38fee


[ROCm/clr commit: b2a93adb82]
2021-01-07 23:23:51 -05:00
Rupam Chetia 708d7cb205 [dtest] Tests added for V3 and V4 Code Objects with Static Lds
- Added test for V3 Static Lds code object with sramecc/xnack settings.
- Added test for V4 Static Lds code object.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ibc4f7e12033dec231d6834ccdd983e3b9e001d60


[ROCm/clr commit: 656a2cb556]
2021-01-07 23:19:02 -05:00
DURGESH KROTTAPALLI e372b28787 [dtest] Tests for hipMemcpy2D and hipMemcpy2DAsync APIs
Added following functional and negative scenario tests
for hipMemcpy2D and hipMemcpy2DAsync APIs
 1. Verifying D2H and H2D functionality
 2. Verifying D2D on same device and peer device
 3. Verifying using pinned host memory on same and peer GPU
 4. Negative test scenarios
 5. Verifying hipMemcpy2DAsync API along with kernel launch

SWDEV-238517  Enhancing hip unit tests

Change-Id: I8f447bc7f6bf13cb895f1809f5a2b501baa8782c


[ROCm/clr commit: 7e6d748f26]
2021-01-05 23:23:09 -05:00
Tao Sang 2c1c9f78d6 Remove hip-hcc codes: Part three
1.Rename include/hip/hcc_detail/ as include/hip/amd_detail/

2.Rename include/hip/nvcc_detail/ as include/hip/nvidia_detail/

3.Create __HIP_PLATFORM_AMD__ to replace __HIP_PLATFORM_HCC__

4.Create __HIP_PLATFORM_NVIDIA__ to replace __HIP_PLATFORM_NVCC__

After hcc_detail, nvcc_detail, __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__
have been removed from upstream, they will be removed from hip runtime.

Change-Id: I1ae457effd739d6c25bca203c1724b026be21fce


[ROCm/clr commit: 8a2b0b7424]
2021-01-05 10:39:31 -05:00
sumanthtg 040db1c405 [dtest] Tests for hipMemset3D/hipMemset3DAsync APIs
Negative, Functional and Regression scenarios for
 - hipMemset3D
 - hipMemset3DAsync

SWDEV-238517 for enhancing hip unit tests

Change-Id: Idc5604f728ca1a96ec13876e006120f7a3d69acf


[ROCm/clr commit: 2624a5654c]
2021-01-05 07:00:48 -05:00
Sarbojit Sarkar 7cecbfee83 SWDEV-265344: fix for dtest build issue
Change-Id: I561546cb792fc0b33c03b17ba2ccf62802f05656


[ROCm/clr commit: 872d8b7fc6]
2020-12-20 23:26:20 -05:00
Evgeny c3ab859a2d SWDEV-263773 : adding CMAKE_TESTING_TOOL cmake argument
Change-Id: I28df2344d000a0dbef07f45971a9dc92fe07fb27


[ROCm/clr commit: 52b86dfc1c]
2020-12-15 17:52:30 -05:00
Satyanvesh Dittakavi c832ef9e7c SWDEV-258754 Fix seg fault hipMemset with device pointer mapped from hipHostRegister
Change-Id: Ifab66b67df172812ebb6eb25c2bac71821f4d614


[ROCm/clr commit: f06393c75f]
2020-12-15 07:44:34 -05:00
Satyanvesh Dittakavi 1f654026d7 Fix hipPointerGetAttributes
Modified hipPointerGetAttributes to support hipHostRegister ptrs and mapped device ptrs from hipHostRegister
Change-Id: I2f4cf12e09578768308f644123d6d4bdccbd77a8


[ROCm/clr commit: 40733e1fff]
2020-12-15 01:40:24 -05:00
Sarbojit Sarkar 80075304f1 Updated review comment
Change-Id: Ic7f9f33dd23c975f2a7a0f0d485a3d2a457c62bb


[ROCm/clr commit: 1ef88375c2]
2020-12-13 11:30:28 -05:00
Tao Sang 68554aa473 Some improvements on hip cmake file
1.Fix unexpected repeated hip runtime lib building
2.Seperate test cmake from top cmake.

Change-Id: I1ae457effd639d6c25bca293c1724b026be21ecd


[ROCm/clr commit: a7aa84f73a]
2020-12-11 13:32:15 -05:00
Aaron En Ye Shi 3887d84693 Fix hipTestFMA to support older compiler
The older compiler does not promote integral
arguments to double, instead it uses float.
This patch tries to support the old compiler
headers, and also the newer one.

Change-Id: I01e0b96a82ecddc6230cb5baf2573a318b25445b


[ROCm/clr commit: d432615faa]
2020-12-10 14:27:42 -05:00
Aaron En Ye Shi aee19bb761 Fix hipTestFMA to align with libcxx
The HIP-Clang math headers upstream have been updated
to perform type promotion on math function overloads.
If any argument has integral type, it will be cast to
double.

Change-Id: I38d9e6240c40c4092b946851469498b2ae6500ae


[ROCm/clr commit: 9c041b1984]
2020-12-08 10:48:29 -08:00
Sudheer Kumar 6fd533b393 compiler argument update for nvcc
Change-Id: If40caf20543cc29301482deddfb03d6fccb6f3c9


[ROCm/clr commit: da6de84535]
2020-12-06 23:21:14 -05:00
sumanthtg 21c7f6e264 [dtest] hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags() - Additional test
Additional test for flag

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ieca443678c122e291b9d4cd16f7198505cd5d6c3


[ROCm/clr commit: 8ad39c41d8]
2020-12-06 23:19:23 -05:00
Sourabh Betigeri fc68222435 SWDEV-255397: Added new perf test for hipMemset* APIs
Change-Id: Icb12360ebde003e006cc4dceccac7ebe42712a3f


[ROCm/clr commit: 4b3c04c3b0]
2020-12-01 12:30:58 -05:00
Michael LIAO 927ab284f9 Fix hostcall test build.
- As `long`/`ulong` on Windows has different bit sizes from Linux
  platforms, even compiled in 64-bit mode. Need to use portable data
  type `int64_t`/`uint64_t` as possible or use `long long` ones to
  match the prototype in LLVM IR.

Change-Id: I62fe16a2e53aa0f2f2b4069b8a1596b8db7050c9


[ROCm/clr commit: f3b63c004a]
2020-11-30 16:47:16 -05:00
Rupam Chetia d34fa10231 [dtest] Tests for hipExtGetLinkTypeAndHopCount() API
1. Negative Test Cases
2. API functionality tests for hopcount and linktype using rocm-smi library.
3. API functionality test for hopcount when devices are reversed.
4. Disabling test case 7.
5. Implemented External Review Comments.
6. Created a new header file hipP2pLinkTypeAndHopFunc.h.
7. Removed test case 0x7 from directed test.
8. Put testMaskedDevice() under __linux__, placed TODO in line 404 (comments) and replaced '&=' with '='.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I1ae256ecfd637d6c25bca293c1724b026be20eca


[ROCm/clr commit: 4b16d3896d]
2020-11-26 09:30:38 -05:00