Commit grafiek

5790 Commits

Auteur SHA1 Bericht Datum
jujiang 4f2dab9c86 SWDEV-265003-Update HIP documents
Change-Id: I3aea36f9a817ff0d2a379fc902b1ba7794f9736e


[ROCm/clr commit: 32f35bbd2a]
2021-01-13 17:55:16 -05:00
Rahul Garg be82aa43fb Update dispatch latency with wall time measurements
Change-Id: I73bfed129171d6909b4638f714b694111b31ef56


[ROCm/clr commit: 66776ae8de]
2021-01-12 22:52:33 +00:00
Tao Sang ef480eb242 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/clr commit: 149254f7f8]
2021-01-12 11:31:06 -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
Michael LIAO 9211198dcd Remove checking on double.
- All conversions among floating point types should be allowed.

Change-Id: I6223bece51f5b2a535ab3369c5c4380f18acc74d


[ROCm/clr commit: 6b9c1744e9]
2021-01-11 11:33:33 -05:00
Sameer Sahasrabuddhe 2df32ebc65 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/clr commit: 3558643c64]
2021-01-11 15:09:53 +05:30
Icarus Sparry e20326e563 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/clr commit: 468929e539]
2021-01-11 00:50:20 -05:00
Saleel Kudchadker bced4a5b76 Update documentation for hipEventCreateWithFlags
Change-Id: I2658bd95df0d3a802cce4ffcb8dfd40e7055b0f7


[ROCm/clr commit: dab9ae32b2]
2021-01-08 16:32:57 -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
Jatin Chaudhary e91e6ccbfc Populate HIP_CLANG_PATH if its not declared
Change-Id: Ibc1f2e9b3389b6cc7a58579cfb293999ad6e9398


[ROCm/clr commit: 9e35810188]
2021-01-07 04:15:42 -05:00
Payam cef8f01c51 Cleaning lintian warning SWDEV-247996 Part3
Change-Id: I62e5bfc5f17eee12a7a0cfe8ed6fbc35c43ff8c3


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


[ROCm/clr commit: 6838df46eb]
2021-01-05 23:29:50 -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
Satyanvesh Dittakavi 7fec171e78 SWDEV-263678 - fix rocHPCG mgpu perf drop
Change-Id: I33269fe4f6165d1ed172b19033ab9fcb92f338c3


[ROCm/clr commit: 15baf7ef6d]
2021-01-05 00:22:12 -05:00
cjatin 42dfa8e5c4 Add ELF Flags moved from rocclr
Change-Id: I5febe7bdca80517e9f9492d7930def72db83c14e


[ROCm/clr commit: 6faffdffd2]
2021-01-04 13:43:16 -05:00
Jatin Chaudhary f6f9989b82 Adding file command as dependency
Change-Id: Ic719c5ce8ad0d99f6a341b5b46927587080fcf2e


[ROCm/clr commit: e14dbaeb6e]
2021-01-04 00:03:53 -05:00
Sarbojit Sarkar fae1bcd07c Revert "Fix hipmemset to match CUDA behavior"
This reverts commit 76a2999f22.

Change-Id: I53052b25bac4956f3efd124eadc936197f2e466a


[ROCm/clr commit: f64af513a2]
2021-01-01 00:11:58 -05:00
agodavar 1da132c4b4 SWDEV-239065 Refactor hipcc, added new perl module hipvars
Change-Id: I2b71ceb2563501c7b2861cd0f2e23d01207b1bc2


[ROCm/clr commit: f3e350cd12]
2020-12-31 05:41:36 -05:00
agodavar ceb68b8d4f hipmemcpy2D handle height 0
Change-Id: I46bf89e81559c3bfccac0dd0ccd78eee9058c7e3


[ROCm/clr commit: 7dcf2769ae]
2020-12-31 01:41:56 -05:00
agodavar 9de26a2274 SWDEV-265171 Remove hcc compiler support from hipcc
Change-Id: Ibd06e68dd1f079b2f9e46606bdbfc0a0a780b638


[ROCm/clr commit: e7c85da68b]
2020-12-30 06:26:09 -05:00
agodavar 47604611de SWDEV-266089: hipStreamAddCallback argument validation
Change-Id: I3e61006796e88b4e2ba029118c95f3499959257b


[ROCm/clr commit: c5e3f955bf]
2020-12-29 05:42:54 -05:00
Sarbojit Sarkar e2171447ff SWDEV-262810: skip duplicate compile flag inclusion
Change-Id: I02ebfb3cbaf6ec25819de0c4952795c6cc949e4d


[ROCm/clr commit: 567a95b4e4]
2020-12-20 23:26:55 -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
agodavar e85f1404e8 SWDEV-263180 : Fix null ptr dereference
Change-Id: Iefc9fa3f195af45a5c5ebe075056246c930a6d84


[ROCm/clr commit: d74777d2a7]
2020-12-19 02:02:54 -05:00
jujiang 3f58ee3545 SWDEV-265003-Fix hip faq
Change-Id: Ifd29fd9c20ecc905c63fa39fd0768eaca3953aac


[ROCm/clr commit: 84db670474]
2020-12-18 12:21:36 -05:00
Rahul Garg 76a2999f22 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/clr commit: 9ba5902be4]
2020-12-17 19:13:31 +00: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
Evgeny 024774c58a SWDEV-259683 : hipprof: adding hipApiIdByName() method
Change-Id: I1ad2be76efc9fb690ed7c9c2b1091f7eb0c04a31


[ROCm/clr commit: e54f2a1af1]
2020-12-15 15:42:10 -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
jujiang c6862ea596 SWDEV-249486-Add doxygeny for API hipExtModuleLaunchKernel
Change-Id: Id7451ef4f669238a38ed92ec72008326c85afc4a


[ROCm/clr commit: b14bf9e98b]
2020-12-14 15:34:32 -05:00
Tony ad86b47cc6 Correct parsing of target names and supported targets
Change-Id: I6aed72759e6fb4da6834aa80131897dad641e693


[ROCm/clr commit: eab357b852]
2020-12-14 18:20:56 +00: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
Rahul Garg 7ef0e83499 Handle overflow
Fixes SWDEV-261712

Change-Id: I730fcdca8c2640fde9cfdfe2f4b4cf4894807fed


[ROCm/clr commit: 584771e7a2]
2020-12-09 19:09:43 -05:00
Tao Sang 6227f3fae2 Remove hip-hcc codes: Part one
Remove hip-hcc codes from hip code base
Simplify hip CMakeLists.txt to exclude hip-hcc
Simplify cmake cmd for hip-rocclr building
Some minor fixes

Change-Id: I1ae357ecfd638d6c25bca293c1724b026be21ecd


[ROCm/clr commit: 1cba7ec965]
2020-12-09 15:49:47 -05:00
Aaron En Ye Shi a94029c7e4 Add HIP Sample 2_Cookbook/17_llvm_ir_to_executable
HIP supports compiling kernels from LLVM IR into executable.
The device LLVM IR needs to be compiled into a fat binary
object. This device object is embedded into a host object using
llvm-mc directives. Then, any host linker may link the host and
device objects together into an executable. A README was added.

Change-Id: I8ebb6ae86b7ab4290f7cba2eea5584d73a7c453e


[ROCm/clr commit: f7b5fea916]
2020-12-09 15:48:53 -05:00
Aaron En Ye Shi 388213248c Add HIP Sample 2_Cookbook/16_assembly_to_executable
HIP supports compiling kernels from assembly into exec.
The device assembly needs to be compiled into a fat binary
object. This device object is embedded into a host object using
llvm-mc directives. Then, any host linker may link the host and
device objects together into an executable. A README is added.

Change-Id: I59d3a8b5363073810ffc3aa0d57f21b0df272369


[ROCm/clr commit: b8b90f344c]
2020-12-09 15:48:41 -05:00
Saleel Kudchadker 662d3c2964 Honor hipEventDisableTiming event flag
Change-Id: Ia949db96e81b9af467f04ab40d143e8d6faa9394


[ROCm/clr commit: 08a65054ea]
2020-12-09 15:10:18 -05:00
Jatin Chaudhary c5feb4d862 Updating the gcnArchName to now have target id
Change-Id: Ibd5576e0fb5b46e8f212de4ec57cd96eb1d3c157


[ROCm/clr commit: 24b997119f]
2020-12-09 01:22:08 -05:00