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

5691 Коммитов

Автор SHA1 Сообщение Дата
Payam e37d37fb26 Cleaning lintian warning SWDEV-247996 Part2
Change-Id: I40eb29b8c2588acac0cd3ae6d96b14fb1abd2350


[ROCm/clr commit: 4e96bfecd5]
2020-10-20 19:27:38 -04:00
Aaron En Ye Shi ff24c82f34 Fix header for OpenMP AMDGCN support
Add ifndef for __OPENMP_AMDGCN__ target, which shares
these header files with HIP.

Change-Id: I720693cfbcfb7836cd2f361d48530fb55ee3557a


[ROCm/clr commit: 01bd165507]
2020-10-20 14:04:48 -04:00
kjayapra-amd 16b7ecf4ec SWDEV-250005 - Fixing error code propagation to HIP outer layer.
Change-Id: I0c0e87dbace0b1182f24411200abdfd9cab3f865


[ROCm/clr commit: c18a791c80]
2020-10-20 09:43:57 -04:00
Sarbojit Sarkar a5f78cf686 SWDEV-256325 : Fix for hipMemset2D crash
Change-Id: I1f434602fecd4fb935d2bc72f2c72d6a2d4c45fe


[ROCm/clr commit: a73d1a1fe0]
2020-10-20 02:54:29 -04:00
Rahul Garg 8605c53e75 Bump version to 4.0
Change-Id: Ia8c3b21ccd58f07c95aa3030bc787144f934f80e


[ROCm/clr commit: 3979d063a1]
2020-10-19 21:00:13 -04:00
Aaron En Ye Shi f3c39a8cfa Fix header invalid sqrt fwd decl and ifdef
The __ocml_sqrt_* functions only accept a single arg,
not two args. Also, change ifdef for if because the flag
__HCC_OR_HIP_CLANG__ is always defined.

Change-Id: Id9dc4eaf0f25df1df27a1bf643cb545ac23653f8


[ROCm/clr commit: bd9ed9ad3d]
2020-10-19 18:01:14 +00:00
Rahul Garg e7e9d74c79 Fix PCI bus domain ID query
SWDEV-256338

Change-Id: I5db361bd2899a5bf761ecf05ecd4635f9e3dce1d


[ROCm/clr commit: 4b7c8f5fc1]
2020-10-19 12:02:50 -04:00
Sourabh Betigeri 04b5141029 SWDEV-254134: Added new perf test - Vector Dot product in performance/compute
Change-Id: Ic2900fe9a1b6b197cdc8c2dd0f93723a8f73f14c


[ROCm/clr commit: 7513454a28]
2020-10-16 13:07:13 -04:00
Rahul Garg b5abdead82 Fix maxTexture1D query
Needed by SWDEV-254068

Change-Id: Ib43a3e5e96d3882af354208063e5502673c0f35a


[ROCm/clr commit: cc1101f97a]
2020-10-14 17:32:04 -04:00
Julia Jiang a4b94d9d3c SWDEV-249486-Update HIP doxygen
Change-Id: Id32772b8f4d495e0f1bd3cb5cd1ec211a06298c3


[ROCm/clr commit: 5a174daa09]
2020-10-14 13:59:58 -04:00
Yaxun (Sam) Liu 096e951dae Fix test hipDynamicShared
This test does not work if block size is greater than wave size
since it relies on lock-step execution of the kernel in the block.
If there are more than waves in the block, the threads in the block
miss synchronization since one wave may finish before another wave.

Due to this bug, the test fails on GFX10 wave32 mode.

This patch fixes that so that it works for block size greater than
wave size.

Change-Id: Ie0097066081df36cb6fe025a71d0ee5a83ec00a2


[ROCm/clr commit: 4c4fff6b51]
2020-10-14 10:15:44 -04:00
Sarbojit Sarkar 7e0e5ac4e2 SWDEV-255975: fix for gcc + hip_fp16.h compilation error
Change-Id: Ia152bad4af71a5b53a16e2f9fd9aeeacc61b39ac


[ROCm/clr commit: 40f27ec83a]
2020-10-14 06:57:25 -04:00
Sarbojit Sarkar 34b9762927 Added sample with __gfx*__ macro used
Change-Id: I80a474947ea1b755082dad5329d1aff3ee78840c


[ROCm/clr commit: 3b8b31a61c]
2020-10-14 06:56:39 -04:00
agodavar bf65eead59 SWDEV-249870: Short-Term solution for Pre-Compiled Headers for Online Compilation - Fix static build
Change-Id: Ib608e73dbffa2d803599cba5ba842cd5a2a2ba9d


[ROCm/clr commit: 4018464960]
2020-10-14 00:37:46 -04:00
German Andryeyev e343bc4b00 Report managed memory capabilities
Change-Id: I241a42e26ee49fb47dcb3ba87c4bd8fb691dffdf


[ROCm/clr commit: 15ba5611ba]
2020-10-13 16:09:43 -04:00
Rahul Garg 7fec05f3cb Clean up unused options
Fixes SWDEV-253092

Change-Id: Ic820c4d7bec1130978b47094f3ad9764e40e6a1f


[ROCm/clr commit: 85715bc20f]
2020-10-13 12:19:20 -04:00
Aryan Salmanpour 0a6ac3c020 Fix a seg fault when unallocated mem handle passed to hipIpcOpenMemHandle API
also validate the flag argument passed to hipIpcOpenMemHandle API and return
error if it is not equal to "hipIpcMemLazyEnablePeerAccess" (defined to 0)
and it is the only supported flag currenlty for this API.

SWDEV-253462

Change-Id: Ie1c8b79c680a29dc72bf262cf53ae5e011fb1247


[ROCm/clr commit: 89964dbbd4]
2020-10-13 11:14:41 -04:00
Lakhan singh Thakur 21fa1d0f75 [dtest] Adding Test case for hipFuncSetSharedMemConfig() and hipFuncSetAttribute()
SWDEV-251504 - QA task for validation

Change-Id: I11ed98f648352cb32161c41290516c77231236bc


[ROCm/clr commit: 04b773471b]
2020-10-13 11:11:00 -04:00
Rupam Chetia 07c5bbbf6c [dtest] hipModuleLoad and related API tests
APIs: hipModuleLoad, hipModuleLoadData and hipModuleLoadDataEx,
      hipModuleGetGlobal(), hipModuleGetFunction
Functional and negative tests
Repeated call to ModuleLoadXX/ModuleUnloadXX
Few tests are disabled now, will be enabled when functional

SWDEV-238517 for enhancing hip unit tests

Change-Id: I65c12027e32db80213468fdee1c5cc1aa3e60bfd


[ROCm/clr commit: 4f48154f46]
2020-10-13 11:10:11 -04:00
Julia Jiang 427cb5bf4c SWDEV-249487-remove two HCC related APIs
Change-Id: Icf90ece0808643e0c5f0cc00b6644d5171b553d8


[ROCm/clr commit: c144b57d54]
2020-10-13 11:08:37 -04:00
agodavar 52c79e6b63 SWDEV-255853: CUDA device P2P attributes
Change-Id: I7deffd04101b565f68a72a179f9faeaa22cab97d


[ROCm/clr commit: e65bbb0329]
2020-10-13 05:32:29 -04:00
agodavar 815e10863c SWDEV-254909:Support for missing texture/array cuda driver types
Change-Id: I9c769f6335ec3e7feacaa8929719c666bff91934


[ROCm/clr commit: fae443cb36]
2020-10-13 05:30:31 -04:00
Freddy Paul 2f1964292f HIP:Break dependency to rocm-dev package
Check for rocm_agent_enumerator instead of rocminfo or
.info/version.

Change-Id: I1718bd4f70b3e527ea3afe19c1a685ab7ed70808


[ROCm/clr commit: 5a46d80682]
2020-10-12 17:53:53 -04:00
agodavar de8da71c9a SWDEV-254185 - Added support to pass include headers to hipRTC
Change-Id: Ia19e6806a476d3c6ecd3e9a89c3ed72953a4900c


[ROCm/clr commit: 7d67573a4f]
2020-10-12 06:04:14 -04:00
Tao Sang f1cc6bef64 Revert "Make directed_test support static libs"
This reverts commit a47392be9b.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ib2d1084ea21461f70f96f95c6025a08f88288357


[ROCm/clr commit: 0d1cf31eb1]
2020-10-12 00:01:13 -04:00
Sameer Sahasrabuddhe 4a1c0fca7f Do not inline the body of __assert_fail()
The device side assertion calls printf to write out a message. In the
device compiler, printf is expanded into a series of hostcalls that
transmit the printf payload to the host. This expansion increases the
length of the kernel, resulting in sub-optimal compilation. The
solution is to ensure that the assert() implementation is not inlined
into the kernel.

Change-Id: Ia3a075461a755cf007218f262b0863e1926c76aa


[ROCm/clr commit: 160dfb5a1f]
2020-10-10 01:03:04 -04:00
Yaxun (Sam) Liu cd76837c2e Disable wave64 support on GFX10 for HIP
Change-Id: Ie3d4fe91516167ea26ce704689b6b6f1951a7521


[ROCm/clr commit: 147f064d31]
2020-10-09 17:02:56 -04:00
Tao Sang a47392be9b Make directed_test support static libs
1.Make directed_test apps linked against static libs
of hip, rocclr, rocr, roct and amd_comgr.
2.Remove custom_target amdhip64_static_combiner.
3.Support EXCLUDE_HIP_LIB_TYPE <static|shared>.
4.Simplify argument list parsing.
5.Fix hip_pch.o missing issue in samples' build.
6.Fix some original small bugs.

Change-Id: I30f5e65367613152ce86b80b13e1c9f2a28da803


[ROCm/clr commit: 36c5679efc]
2020-10-08 22:46:58 -04:00
Jason Tang b196722b7f Add hipStreamSynchronize to hipModuleLoadDataMultThreadOnMultGPU test
hipStreamDestroy() by definition doesn't guarantee waiting for all stream operations.

Change-Id: Ibfd21c48d71741ebcbcb9898c8b5ac235bdc570b


[ROCm/clr commit: f2c2fd3d09]
2020-10-08 11:06:39 -04:00
Payam 03fb2472ab Cleaning lintian warning SWDEV-247996 Part1
Change-Id: Ie024912b65125c3e14ecc278ac12e07912df6354


[ROCm/clr commit: 95bef523fe]
2020-10-08 05:44:58 -04:00
German Andryeyev d97ee5d52a Use more managed memory interfaces
Add extra API calls for managed memory: hipMemAdvise, hipMemPrefetchAsync,
hipMemRangeGetAttribute

Change-Id: Ifb09744acdf7582d278453707373c89c30e3ed03


[ROCm/clr commit: 4ee6d78763]
2020-10-07 16:45:25 -04:00
sumanthtg ceb9b66602 [dtest] Tests for atomicAdd/atomicAddnoRet
Positive and negative test cases for atomicAdd and
AtomicAddnoRet device functions

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id20ba2550d20f224004f105cdcd087002cb80e56


[ROCm/clr commit: 00d46218b7]
2020-10-07 13:20:12 -04:00
sumanthtg 754936e9e9 [dtest] Additional tests for hipOccupancyMax APIs
Additional tests for following APIs
- hipOccupancyMaxActiveBlocksPerMultiprocessor
- hipOccupancyMaxPotentialBlockSize

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ib9441c1366f46a082e10eb1a572bc7d8ebe1ee37


[ROCm/clr commit: 4eb65d58dd]
2020-10-07 13:19:06 -04:00
Sourabh Betigeri c8d913a3d8 SWDEV-247768: Added new perf test - SampleRate
Change-Id: I3aee07dff3759a0ac56a1afb384168bb94394187


[ROCm/clr commit: acdc435e77]
2020-10-06 12:46:13 -04:00
Sarbojit Sarkar 1dee6f664b [perf]hipMalloc perf optimization
Change-Id: I9cd1d29205cb0c9938d26bb8e336fc9fe8a262ed


[ROCm/clr commit: a3b44b5f75]
2020-10-06 12:22:57 -04:00
Vladislav Sytchenko 4a6f033fd2 Change __HIP_ENABLE_PCH to be an option
Currently all the logic checks if __HIP_ENABLE_PCH is set, so setting it
to OFF will still enable PCH.

Switching __HIP_ENABLE_PCH to be a CMake option will enable correct
build behaviour.

Change-Id: I77a663589ffb5f2595c6ad3d144eb9466adcf250


[ROCm/clr commit: 8034467ec3]
2020-10-06 11:17:47 -04:00
kjayapra-amd 78fd06679b SWDEV-254363 - Checks to make sure kernel is launched on the same device as it was launched.
Change-Id: I2f273a70b1a5fc0e9fc9c6144eabd32466ff4e59


[ROCm/clr commit: 40322a9f1c]
2020-10-06 08:38:09 -04:00
Rahul Garg 8e268b9170 Remove libhip_hcc references
These were added in commit b2e0df3845.

Change-Id: I5815c90bb83ac74730f6bce114eb353f54b86670


[ROCm/clr commit: 2a5d39cd3b]
2020-10-06 04:29:35 -04:00
Sarbojit Sarkar 8587ec2976 SWDEV:253548 : remove gfx-arch macros
Change-Id: I1ef0b4e080c15a9c6228f48ecd6a65b134d0a72d


[ROCm/clr commit: 3f0e33adb5]
2020-10-06 01:15:58 -04:00
Yaxun (Sam) Liu f3663d440c Fix warpSize for gfx10
Change-Id: I8029ebeb91db1efa8e166ad349aaae6364e8069d


[ROCm/clr commit: 71586b02e3]
2020-10-05 20:45:07 -04:00
Rahul Garg b022db2663 Bump version to 3.10
Change-Id: I7410996510fa24d2db0a4ecb2a2642e2e95058cf


[ROCm/clr commit: 9f81811fd2]
2020-10-05 20:26:38 -04:00
Vladislav Sytchenko 7b635ae18c Revert "Revert "Merge branch 'amd-master-next' into amd-npi-next""
This reverts commit 0627e8783b.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I92ceb171e31026ed1864704cef2fc1497b883ef9


[ROCm/clr commit: d5aa0f607d]
2020-10-05 13:20:58 -04:00
Vladislav Sytchenko 0627e8783b Revert "Merge branch 'amd-master-next' into amd-npi-next"
This reverts commit 6c6299acb2.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I53322718dadde2c98f96140b8e260ec7ee9ef721


[ROCm/clr commit: 9142674ef0]
2020-10-05 13:02:39 -04:00
German Andryeyev 913d257803 Fix error codes in HMM interfaces
Change-Id: I16490c575f2840b1116a4135431a611cf812f3a4


[ROCm/clr commit: ef5d9bd562]
2020-10-05 12:54:16 -04:00
Vladislav Sytchenko 6c6299acb2 Merge branch 'amd-master-next' into amd-npi-next
Change-Id: I0587f67e28cec51c2ae753e986d2c7ce21db271e


[ROCm/clr commit: d7c02619d6]
2020-10-05 09:51:06 -04:00
Jatin Chaudhary 284e6245d6 Use availableRegistersPerCU_ to populate number of registers
Change-Id: I58f2323bf454f910d22ab31f05aa3024a3d1106f


[ROCm/clr commit: c9d996a0a8]
2020-10-05 00:33:27 -04:00
mshivama d3bcef604a Fix bug reported in SWDEV-251619
Unit testing of CG threadRank api in multi-grid environment requires
some changes as grid id of particular device is not known apriori.

Change-Id: Ie7941a09337653f3ada5eedfb7c64a93a234498b


[ROCm/clr commit: 9c86cdb89d]
2020-10-02 13:39:10 -04:00
Pruthvi Madugundu 41e2601b0d Update to the REGEX in hip-config.cmake
- Matching the output "hipcc --version" for Installed directory
  to get the llvm compiler path, wasnt done properly.
- Adding fallback for HIP_CLANG_ROOT on ROCM_PATH if defined in env
- Changed the mode of get_filename_component to DIRECTORY

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: Ia38e234f34cabb5b419906c7094b327083292b0e


[ROCm/clr commit: 5f667bf4e8]
2020-10-02 13:03:49 -04:00
Srinivasan Subramanian 04c782ad9a hipcc doesn't find libhsakmt without ldconf entries
Signed-off-by: Srinivasan Subramanian <srinivasan.subramanian@amd.com>
Change-Id: Iea6a43786f05c9e44dcf863f4f96a53f81384dbd


[ROCm/clr commit: 8b889ad26e]
2020-10-02 12:55:00 -04:00
Aryan Salmanpour e9ed860cc1 enable building cooperative directed tests on NV platform
Change-Id: I9a658b28010176d4f9401010b9c4b4be7ae86b92


[ROCm/clr commit: c8ac97a1e0]
2020-10-02 00:59:40 -04:00