Commit Graph

11478 Commits

Author SHA1 Message Date
Michael LIAO 4e3c8a5ff4 [hip] Fix typos.
Change-Id: I9d85d0e70033d144dbd4d61cb434ffbe023af8c0


[ROCm/clr commit: a353df6b36]
2020-04-22 16:44:54 -04:00
Tao Sang 9d88e0ff89 Fix hip_get_devices failure in lammps
Support hipDeviceAttributeIntegrated in hipDeviceGetAttribute() with hip-vdi rt

Change-Id: Ie5ba81222af3554a843c184ae75af7f369a3c24b


[ROCm/clr commit: 85abd8f028]
2020-04-22 15:16:59 -04:00
Evgeny c4c08791e2 cleanup
Change-Id: Ia0ee0e4cab2ee8eaa9931024681d0db5b2802594


[ROCm/clr commit: b05e54bf84]
2020-04-22 13:42:45 -05:00
Michael LIAO 78e7b67076 [vdi] Add device assertion support.
- Once device assertion occurs, abort the host execution as well.
- TODO: This's the initial support. As we need to drain hostcall queue
  to ensure device assertion message being flushed out, hostcall
  listener needs an interface to explicitly drain its queue.

Change-Id: I8a04400aa7109bfd054ae5777c41a4abbf0db4a9


[ROCm/clr commit: 97f55b5c7f]
2020-04-22 10:03:55 -04:00
Chauncey Hui 16466634e2 SWDEV-2 - Change OpenCL version number from 3127 to 3128
[ROCm/clr commit: 43a8e929a2]
2020-04-22 03:00:03 -04:00
Michael LIAO 07f08b78c1 [hip] Generate assertion message in assertion.
Change-Id: Ie66f6563e8728fd0e21cf22dcc6619e4a0e5c28d


[ROCm/clr commit: 2c1933e0f3]
2020-04-21 16:44:40 -04:00
Matt Arsenault 97100bbd20 Use cmake features to set c++ version
Change-Id: I2649cdca5bc68298371f770a7a624a21db3f4137


[ROCm/clr commit: d4a447967e]
2020-04-21 16:01:30 -04:00
Tao Sang 98a2707931 Merge "support hipLaunchParm test with static lib of hip-vdi rt" into amd-master-next
[ROCm/clr commit: 8d63204887]
2020-04-21 15:54:46 -04:00
Matt Arsenault f4faac3cb6 Update cmake project name
Change-Id: If4bdf15ca3774148c0c415e8cd950efa310ef62f


[ROCm/clr commit: 356c3bf5b8]
2020-04-21 15:23:06 -04:00
Matt Arsenault 6e10ca7f0a Use cmake features to set C++ version
Change-Id: Icf5dcd781b8fecc7a39117f3c6dee97dcba9dcca


[ROCm/clr commit: fc4afbd0f9]
2020-04-21 15:22:50 -04:00
Tao Sang 672f243a42 Add perfDispatch tests into hip direct_tests
Port perfDispatch tests from OpenCL into hip direct_tests

Change-Id: I9f8362636e329d2d0a434c4f012ccc46a524c746


[ROCm/clr commit: b52873ff98]
2020-04-21 14:00:27 -04:00
Tao Sang 876c5c568e support hipLaunchParm test with static lib of hip-vdi rt
Let hipMalloc() be called in main() so that global variable can be initialized.

Change-Id: I9aa1f0a0bb4fa0825d10af0b58c843e7b928e9a3


[ROCm/clr commit: d27880ac39]
2020-04-21 13:55:42 -04:00
Michael LIAO f0df4418a0 [vdi] Refactor texture/surface reference support.
Change-Id: I8014d82aae7139ef5f95e4b50c4fc6da200dbc9d


[ROCm/clr commit: 441284841d]
2020-04-21 11:56:48 -04:00
German Andryeyev 2266bc700b SWDEV-231579 - [hipclang-vdi-rocm][perf]
- HIPPerfDispatchSpeed disparity between HIP/HCC vs HIP/VDI
Insert a wait marker command in the default stream only when
HIP has pending operations on other async streams

Change-Id: I68660a54867fab7571ba57eb1df5feb1bca1c61a


[ROCm/clr commit: 21840ac6a0]
2020-04-21 10:05:26 -04:00
Chauncey Hui d75474fc8e SWDEV-2 - Change OpenCL version number from 3126 to 3127
[ROCm/clr commit: a8150cfe39]
2020-04-21 03:00:03 -04:00
kjayapra-amd a13cab17d4 SWDEV-229480 - Improve error messages in HIP Layer.
Change-Id: I054b979d3aa6cf6ed4ca14a9393bdcba757772ff


[ROCm/clr commit: b3308f7674]
2020-04-20 21:23:52 -04:00
Payam cc7f1445cb adding License file
Change-Id: I21062736fe9c9b6e6c0595108421e90e6f31d8d9


[ROCm/clr commit: 0b0d9c27cb]
2020-04-20 16:12:32 -04:00
Tao Sang eb50c7ef38 Solve issues with hip-vdi runtime static lib
1.Combine libamdhip64_static_base.a and libamdvdi_static.a into libamdhip64_static.a.
2.Let hipcc use -use-staticlib to link libamdhip64_static.a.
3.Add some samples for static lib.
4.Fix compiling failure of code object.

Change-Id: Ic8c95228eb139058da8b5d66ba8439486154ca6f


[ROCm/clr commit: 32130f8ec3]
2020-04-20 15:37:02 -04:00
Pruthvi Madugundu ae4376f0f9 Make CMAKE_SHARED_LINKER_FLAGS appendable
Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I3c23223270976b8746d5b4debf4d846ae0aa4c6f


[ROCm/clr commit: 8ba1527661]
2020-04-20 13:51:05 -04:00
Pruthvi Madugundu eceb5d2e82 Merge "Removing ld.so.conf entry for Opencl package" into amd-master-next
[ROCm/clr commit: bbcfe78d1c]
2020-04-20 13:50:41 -04:00
Chauncey Hui 55a10e25b6 SWDEV-2 - Change OpenCL version number from 3125 to 3126
[ROCm/clr commit: 54fc281d6c]
2020-04-20 03:00:03 -04:00
kjayapra-amd 236705c62f SWDEV-229840 - Improve error messages on ROCCLR Layer.
Change-Id: Iab7d9156cdc206db86385aa05023a0095ed40f92


[ROCm/clr commit: 7458bf9964]
2020-04-19 20:01:49 -04:00
Yaxun Liu 7d1457a58a Merge "Revert "Solve issues with hip-vdi runtime static lib"" into amd-master-next
[ROCm/clr commit: 54e663fb27]
2020-04-18 08:52:26 -04:00
Chauncey Hui 365054f997 SWDEV-2 - Change OpenCL version number from 3124 to 3125
[ROCm/clr commit: 4e46da4fb0]
2020-04-18 03:00:03 -04:00
Pruthvi Madugundu fe6e14447b Removing ld.so.conf entry for Opencl package
- The entry removed only when the installation is NOT /opt/rocm

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


[ROCm/clr commit: 5f710a5ecb]
2020-04-17 12:27:57 -07:00
Matt Arsenault 919f758ba0 Fix -Winconsistent-missing-override warnings
Change-Id: I67d4a853045197ed28e5d616a4afc86f1d6a1d7c


[ROCm/clr commit: 55cc77d7d1]
2020-04-17 15:24:39 -04:00
Matt Arsenault d535b24691 Fix several instances of -Wsizeof-array-div
e.g.:
 warning: expression does not compute the number of elements in this
 array; element type is '__cpu_mask' (aka 'unsigned long'), not
 'uint32_t' (aka 'unsigned int') [-Wsizeof-array-div]

for (uint i = 0; i < sizeof(mask_.__bits) / sizeof(uint32_t); ++i) {

__bits is a __cpu_mask, which is a 64-bit type. These were accessed
through uint32_t pointers so the loop bound should have been
correct. These operations can be done directly on the 64-bit type so
we can leave the array size pattern, and eliminate the casts.

The case in getNextSet should probably be rephrased in terms of
__cpu_mask to avoid the pointer casting, but this is tricker than the
other cases so I used the easy option to quiet the warning.

Change-Id: I1332584fad58439ccd9d369589519a9918e1678e


[ROCm/clr commit: 72c435ea35]
2020-04-17 15:24:33 -04:00
Payam 38912263db adding License file
Change-Id: I495066010288a346b0cfaee44554a5aa8dace491


[ROCm/clr commit: 6e5b4ff46c]
2020-04-17 14:28:24 -04:00
Payam c1aa097920 Adding License file
Change-Id: I9da5c36883a7b167e3bf312c7ed61af207c33c59


[ROCm/clr commit: be45d12c1d]
2020-04-17 13:44:43 -04:00
Tao Sang efe517e4c0 Revert "Solve issues with hip-vdi runtime static lib"
This reverts commit 08d1b39d50.

Reason for revert: It is causing dkms-no-npi-hipclang broken.
It is top priority to maintain dkms-no-npi-hipclang build, otherwise we lose track of regression analysis.
So revert the change for now and recommit it after fixing it.

 

Change-Id: Ia5136e888baecb6148c6c18eedbf37066fcb1eaa


[ROCm/clr commit: a6c6f51926]
2020-04-17 10:13:08 -05:00
German Andryeyev 25f9a11766 SWDEV-231691
- Problem with CL_DEVICE_GLOBAL_FREE_MEMORY_AMD query.
Check if allocated memory exceeds the total size.

Change-Id: Ieed8829860663bac1acfa41d21309dff4d8772c7


[ROCm/clr commit: e289ebdf20]
2020-04-17 09:03:04 -04:00
Chauncey Hui 6351f7837b SWDEV-2 - Change OpenCL version number from 3123 to 3124
[ROCm/clr commit: 0318fcccf6]
2020-04-17 03:00:03 -04:00
Aryan Salmanpour ca51795efd disable printf on hip-clang on Windows (#2021)
[ROCm/clr commit: 08147681d0]
2020-04-17 10:33:24 +05:30
Sarbojit2019 2436c2dd6f [HIPTEST]common changes for unittest (#2017)
[ROCm/clr commit: 7808be893f]
2020-04-17 10:31:47 +05:30
Jeff Daily 8b0a909b2b add IPC event support (#1996)
[ROCm/clr commit: e943144b31]
2020-04-17 10:31:22 +05:30
Siu Chi Chan fee56cb360 moving the extractkernel tool from hcc to hip (#1644)
[ROCm/clr commit: 2634c8fe74]
2020-04-17 10:31:06 +05:30
Tao Sang edaf06b435 Hide elf Apis for internal use only
Hide elf Apis so that there won't be mixing with external libelf

Change-Id: I2b3d25a8ab3b161f4dd969e31ad45e8aa627263b


[ROCm/clr commit: 02cd18813f]
2020-04-16 11:47:34 -04:00
Chauncey Hui dba7192bc5 SWDEV-2 - Change OpenCL version number from 3122 to 3123
[ROCm/clr commit: 04563c4503]
2020-04-16 03:00:03 -04:00
Tao Sang 08d1b39d50 Solve issues with hip-vdi runtime static lib
1.Combine libamdhip64_static_base.a and libamdvdi_static.a into libamdhip64_static.a.
2.Let hipcc use -use-staticlib to link libamdhip64_static.a.
3.Add some samples for static lib.
4.Fix compiling failure of code object.
Change-Id: Ia2333622a8d05639b90974c4c5d3d85654ba0138


[ROCm/clr commit: 5210ee6ca5]
2020-04-15 13:46:36 -04:00
Karthik Jayaprakash 18aa2145cd Merge "SWDEV-227602 - Adding support for hipFuncGetAttribute" into amd-master-next
[ROCm/clr commit: d7d49eb8e9]
2020-04-15 12:18:32 -04:00
kjayapra-amd 011eb7a11c SWDEV-227890 - Adding support for gfx1030 in amd-npi.
Change-Id: I3cb2bdf7915e251fce9efeb8b156c8947704ca93


[ROCm/clr commit: 2e5d3b6ade]
2020-04-15 09:59:59 -04:00
Vlad Sytchenko 4720e03e65 Revert "(SWDEV-210228)"
This reverts commit 9ce8e0eeb8.

Change-Id: I1e24ce384ae4cc7b39b019dac328e17cca687d38


[ROCm/clr commit: e57dbb684f]
2020-04-14 16:15:58 -04:00
Vlad Sytchenko 5e9504b200 Cherry pick 5c6b85 from KhronosGroup/OpenCL-CLHPP
Updates cl2.hpp and cl.hpp to handle case of platform with zero devices without error.

Change-Id: I6190c65ebf894b3a26579c54e96881c334346358


[ROCm/clr commit: 0779b034c4]
2020-04-14 16:11:15 -04:00
Christophe Paquot ca7600b808 Merge "Fix build failure of rocPRIM" into amd-master-next
[ROCm/clr commit: b87d9405e6]
2020-04-14 15:02:09 -04:00
Vlad Sytchenko bde6f8b43a Correctly calculate size of the copy region
Since we adjust we adjust the start of the region, amd::BufferRect::end_ is no longer the size, just the offset as to where the region ends.

The actual size of the region is (amd::BufferRect::end_ - amd::BufferRect::start_).

Change-Id: I8425d8bdfb20f485740863813e762e8923d9ee94


[ROCm/clr commit: 4d6e394c73]
2020-04-14 12:25:17 -04:00
Yaxun (Sam) Liu 59b7920748 Fix build failure of rocPRIM
Two issues are fixed:

libamdhip64_static.a is not included in package.

cmake generated target files uses installation path of libraries
which are created when the libraries are built and installed.
The CI uses customized installation directory which is not
the package installation directory, thefore the library location
in cmake generated target files differs from the library location
installed from package. This causes rocPRIM build failure since
rocPRIM uses pkg-config which checks library location.

The fix is to fix the library location before adding cmake
generated target files to package.

Change-Id: I4aa2c6138f58df6d4a86301a5c0436edcb19ab70


[ROCm/clr commit: fa66140ee5]
2020-04-14 09:47:59 -04:00
Yaxun (Sam) Liu 2406fa8a3d Disable device side malloc (#2009)
* Disable device side malloc

Currently device side malloc is not working and takes excessive
device memory.

Disable it for now until a working malloc is implemented.

Change-Id: I1ad908c1c53a83752383b4be96688a848642c699

[ROCm/clr commit: d556c3425b]
2020-04-14 16:07:14 +05:30
Evgeny Mankov fefbb4ff84 Merge pull request #2016 from emankov/HIPIFY
[HIP][SPARSE] sync with HIPIFY's #95 and #96

[ROCm/clr commit: 0bde89dadd]
2020-04-14 10:43:21 +03:00
Chauncey Hui 0fc2a48327 SWDEV-2 - Change OpenCL version number from 3121 to 3122
[ROCm/clr commit: b65e80c67f]
2020-04-14 03:00:04 -04:00
Yaxun (Sam) Liu aadb232c20 Fix MIOpen build failure
This is charrypick of 9ead991784
and https://github.com/ROCm-Developer-Tools/HIP/pull/2009

Fix cmake config file

Removed cmake target files under packaging directory.

Merged cmake config .in files for HIP-Clang and HCC as one.

Use cmake generated target files in both install and packaging.

This makes cmake config file consistent for make install and
make package.

Let device side malloc/free return nullptr and trap

Change-Id: I448f3ea2d4934648089bad371debc203f895cba6


[ROCm/clr commit: 4e1d05c4be]
2020-04-13 23:01:31 -04:00