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

5090 Коммитов

Автор SHA1 Сообщение Дата
Tao Sang a3f2d2616f SWDEV-257056 - Fix cyclic dependence of hip/rocclr libs
Solve upstream building failure due to the cyclic dependence.

Change-Id: Ibf34c789d5bd4278adcedba1d6e057639c258488


[ROCm/hip commit: 26d04e9af8]
2021-01-21 13:00:22 -05:00
jujiang 51bdcf1574 SWDEV-265003 - update HIP document
Change-Id: I1e8ec3ad380330b48d164a2ca60b0a70f7e54ae6


[ROCm/hip commit: 6084d0da2d]
2021-01-20 16:24:20 -05:00
Satyanvesh Dittakavi 8a803a1592 SWDEV-268989 - Modify atomicAdd double to use clang builtin
Change-Id: If9d40046df2f3f5af7cc1bd6c935fbe7d686e7d8


[ROCm/hip commit: ecdbaf73cf]
2021-01-20 02:39:15 -05:00
agodavar 601b7f6d7b SWDEV-267298 - update install script to build hip-rocclr
Change-Id: Ia8d72ebc41184d2fc58aa4e99966ef9b71a7fc26


[ROCm/hip commit: 2e2f5a3824]
2021-01-19 11:50:42 -05:00
agodavar 78dd89cc17 SWDEV-268552 - HIP sample hipDispatchEnqueueRateMT segfaults, updated to use hipModuleLoadData
Change-Id: Ibf34c780d5bd4278adcedba1d6e057637c258485


[ROCm/hip commit: 70f2b4031b]
2021-01-19 09:32:14 -05:00
Tony Tye 8da2326f6f SWDEV-268864 - Use new isa class to access isa related information (part 2)
Change-Id: If7ed535b3012aec3f2cb4eb7ab93d8f5aed9783f


[ROCm/hip commit: 040bc455d4]
2021-01-19 03:36:22 +00:00
Tony Tye 03867f738e SWDEV-268864 - Use new isa class to access isa related information
Change-Id: I2122bf85155997d802ca54e456c2dae66b801825


[ROCm/hip commit: c45b74c9de]
2021-01-18 22:31:01 +00:00
Sameer Sahasrabuddhe f0a9c129a0 Implement assert() using the new fprintf_stderr facility
The device library now provides functions to specify the host stderr
stream in a hostcall printf message. This change implements an
assert() macro which can construct such a message. The end result is
that assertions on the device are now correctly printed on the host
stderr instead of stdout.

Change-Id: I85ab8f7848bcf28303cb8dbb8a798bc6aece7d75


[ROCm/hip commit: 96be8a7b73]
2021-01-17 23:54:46 -05:00
David Salinas 7f580a29b0 remove extractkernel
Change-Id: I46a380059fa336aa7553669629a21e8aa7717e7b


[ROCm/hip commit: 5f96929cf6]
2021-01-15 11:34:32 -08:00
Satyanvesh Dittakavi 5c60465932 device property __HIP_ARCH_HAS_SHARED_INT64_ATOMICS__ set to 1 as it has compiler support
Change-Id: Ic91c4955d4f2d52d844471f81e6f0d19418018f5


[ROCm/hip commit: aaa15a7455]
2021-01-15 11:40:09 -05:00
DURGESH KROTTAPALLI 76eb4b7b1e [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/hip commit: 0b871a24f6]
2021-01-15 01:58:22 -05:00
David Salinas e7073fc17c add new code object tooling: roc-obj-ls and roc-obj-extract
SWDEV-229776

Change-Id: Icb11c4552515d3eff3bcf303c4a470ab90d1dd58


[ROCm/hip commit: cb859b7263]
2021-01-14 14:45:46 -05:00
Tao Sang 118c6ba23e Fix building mathlibs failure
Add back
__HIP_PLATFORM_HCC__
__HIP_PLATFORM_NVCC__

Change-Id: I1ae48678eafd849d6c25bcb204c1724b026be22f


[ROCm/hip commit: 59ef7dc9e2]
2021-01-14 14:03:15 -05:00
Tony Tye bca5187787 Use ROCclr Info.targetId_
Use Info.targetId_ instead of Info.name_ so it will work on Windows
PAL driver and ROCm.

Change-Id: I20537899c36c0ee330a4c09136a52e53d9f35e0d


[ROCm/hip commit: 28e60ec942]
2021-01-14 05:17:20 +00:00
jujiang 8ba058e51e SWDEV-265003-Update HIP documents
Change-Id: I3aea36f9a817ff0d2a379fc902b1ba7794f9736e


[ROCm/hip commit: e3ec98f6e2]
2021-01-13 17:55:16 -05:00
Rahul Garg 4ca1d84a26 Update dispatch latency with wall time measurements
Change-Id: I73bfed129171d6909b4638f714b694111b31ef56


[ROCm/hip commit: 89491c6015]
2021-01-12 22:52:33 +00:00
Tao Sang 2d1dc3949d Workarround for rocThrust building failure
Define the following for workarround of rocThrust building failure,
HIP_INCLUDE_HIP_HCC_DETAIL_DRIVER_TYPES_H
HIP_INCLUDE_HIP_HCC_DETAIL_HOST_DEFINES_H

Change-Id: I1ae48677eafd749d6c25bca204c1724b026be22f


[ROCm/hip commit: ef8110da22]
2021-01-12 11:31:06 -05:00
Tao Sang d60da61eef Fix failure for g++/hipMalloc test
Fix hardcoded /opt/rocm

Change-Id: I1ae48567eafd749d6c25bca204c1724b026be21f


[ROCm/hip commit: 636f7600bd]
2021-01-11 11:46:17 -05:00
Michael LIAO ab8ad19eda Remove checking on double.
- All conversions among floating point types should be allowed.

Change-Id: I6223bece51f5b2a535ab3369c5c4380f18acc74d


[ROCm/hip commit: 094ff5431e]
2021-01-11 11:33:33 -05:00
Sameer Sahasrabuddhe 26e35374ff Identifiers with a double underscore "anywhere" are reserved
This particular cleanup is limited to just two functions defined in
the HIP headers.

Change-Id: Ib529685265f2fda90e009b24e7e756e0cf363012


[ROCm/hip commit: 05cc647684]
2021-01-11 15:09:53 +05:30
Icarus Sparry d234e6a9a1 Allow for /usr/bin/hipcc to be a symlink
SWDEV-267206

If /usr/bin/hipcc is a symlink then resolve it first, and then find
the resulting directory rather than resolving /usr/bin.

Change-Id: I380728ffa05ed813cc793a1d6488aaae81ddbda8


[ROCm/hip commit: 24c8e5a348]
2021-01-11 00:50:20 -05:00
Saleel Kudchadker c9cc6fbd65 Update documentation for hipEventCreateWithFlags
Change-Id: I2658bd95df0d3a802cce4ffcb8dfd40e7055b0f7


[ROCm/hip commit: f24b2e075a]
2021-01-08 16:32:57 -05:00
Rahul Garg 8c0ea0d8a3 Add IPC Events support
Change-Id: Iac2bf3d5e1d9a993bebbb066c20d300d6f05558b


[ROCm/hip commit: c307baf3da]
2021-01-08 20:09:26 +00:00
Tao Sang 2820f91c90 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/hip commit: b34dd95124]
2021-01-08 10:53:34 -05:00
DURGESH KROTTAPALLI 2d6af3d103 [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/hip commit: d1c921ffca]
2021-01-08 00:16:54 -05:00
DURGESH KROTTAPALLI d017c25361 [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/hip commit: ba3fff4fcd]
2021-01-08 00:05:57 -05:00
Rupam Chetia facdc585cb [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/hip commit: a6d7c7c8ff]
2021-01-07 23:50:56 -05:00
Rupam Chetia 6f39a4f34d [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/hip commit: 421df7b02a]
2021-01-07 23:29:14 -05:00
DURGESH KROTTAPALLI 1382775b3a [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/hip commit: f44fe200fd]
2021-01-07 23:23:51 -05:00
Rupam Chetia d9a448a070 [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/hip commit: 4c2e91c772]
2021-01-07 23:19:02 -05:00
Jatin Chaudhary 19e55e5536 Populate HIP_CLANG_PATH if its not declared
Change-Id: Ibc1f2e9b3389b6cc7a58579cfb293999ad6e9398


[ROCm/hip commit: 12063cfc45]
2021-01-07 04:15:42 -05:00
Payam ce8c78e5a3 Cleaning lintian warning SWDEV-247996 Part3
Change-Id: I62e5bfc5f17eee12a7a0cfe8ed6fbc35c43ff8c3


[ROCm/hip commit: f9fe063c75]
2021-01-06 11:56:11 -05:00
agodavar add7f87881 SWDEV-245381: Updated guarantee error messages to print based on BUILD_TYPE
Change-Id: Ifafbc075d6b9860da040c72859127c4e638a786f


[ROCm/hip commit: 387d0aa829]
2021-01-05 23:29:50 -05:00
DURGESH KROTTAPALLI c82aa3f29b [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/hip commit: 7822bf7e42]
2021-01-05 23:23:09 -05:00
Tao Sang c618b6aeff 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/hip commit: c2adc70d4d]
2021-01-05 10:39:31 -05:00
sumanthtg 409a10d21f [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/hip commit: f692064d10]
2021-01-05 07:00:48 -05:00
Satyanvesh Dittakavi 5461aac249 SWDEV-263678 - fix rocHPCG mgpu perf drop
Change-Id: I33269fe4f6165d1ed172b19033ab9fcb92f338c3


[ROCm/hip commit: 57dfaab032]
2021-01-05 00:22:12 -05:00
cjatin 80d151d03b Add ELF Flags moved from rocclr
Change-Id: I5febe7bdca80517e9f9492d7930def72db83c14e


[ROCm/hip commit: b96cc0f4c7]
2021-01-04 13:43:16 -05:00
Jatin Chaudhary 95b77b8933 Adding file command as dependency
Change-Id: Ic719c5ce8ad0d99f6a341b5b46927587080fcf2e


[ROCm/hip commit: 45e5e78fcc]
2021-01-04 00:03:53 -05:00
Sarbojit Sarkar c97cd36663 Revert "Fix hipmemset to match CUDA behavior"
This reverts commit f57da595ff.

Change-Id: I53052b25bac4956f3efd124eadc936197f2e466a


[ROCm/hip commit: 36a6baf829]
2021-01-01 00:11:58 -05:00
agodavar e0368a2fba SWDEV-239065 Refactor hipcc, added new perl module hipvars
Change-Id: I2b71ceb2563501c7b2861cd0f2e23d01207b1bc2


[ROCm/hip commit: 547473126e]
2020-12-31 05:41:36 -05:00
agodavar 60998172fb hipmemcpy2D handle height 0
Change-Id: I46bf89e81559c3bfccac0dd0ccd78eee9058c7e3


[ROCm/hip commit: d21cabd890]
2020-12-31 01:41:56 -05:00
agodavar b2af7b1be4 SWDEV-265171 Remove hcc compiler support from hipcc
Change-Id: Ibd06e68dd1f079b2f9e46606bdbfc0a0a780b638


[ROCm/hip commit: ee1d7a339a]
2020-12-30 06:26:09 -05:00
agodavar ccf9c1c482 SWDEV-266089: hipStreamAddCallback argument validation
Change-Id: I3e61006796e88b4e2ba029118c95f3499959257b


[ROCm/hip commit: 2a4568d416]
2020-12-29 05:42:54 -05:00
Sarbojit Sarkar 4088932eec SWDEV-262810: skip duplicate compile flag inclusion
Change-Id: I02ebfb3cbaf6ec25819de0c4952795c6cc949e4d


[ROCm/hip commit: df686db4d8]
2020-12-20 23:26:55 -05:00
Sarbojit Sarkar 3ab852dfe6 SWDEV-265344: fix for dtest build issue
Change-Id: I561546cb792fc0b33c03b17ba2ccf62802f05656


[ROCm/hip commit: 133843bd33]
2020-12-20 23:26:20 -05:00
agodavar 5ae2e9926d SWDEV-263180 : Fix null ptr dereference
Change-Id: Iefc9fa3f195af45a5c5ebe075056246c930a6d84


[ROCm/hip commit: c1dedbd3a0]
2020-12-19 02:02:54 -05:00
jujiang 1ba5585aef SWDEV-265003-Fix hip faq
Change-Id: Ifd29fd9c20ecc905c63fa39fd0768eaca3953aac


[ROCm/hip commit: 021bb7fc61]
2020-12-18 12:21:36 -05:00
Rahul Garg f57da595ff Fix hipmemset to match CUDA behavior
Make hipMemset asynchronous with respect to the host unless
destination pointer refers to pinned host memory.

Change-Id: I5ba230e0cc622aa076dc94692a4c43a57dd2df7b


[ROCm/hip commit: 08f827b28b]
2020-12-17 19:13:31 +00:00
Evgeny 3e7e94ce07 SWDEV-263773 : adding CMAKE_TESTING_TOOL cmake argument
Change-Id: I28df2344d000a0dbef07f45971a9dc92fe07fb27


[ROCm/hip commit: 343f6aafc8]
2020-12-15 17:52:30 -05:00