Commit Graph

12867 Commits

Author SHA1 Message Date
Evgeny 40f527175f adding hipKernelNameRefByPtr function
Change-Id: Iefc18967b10394b85a207ffdb5bbfe5e3601474d


[ROCm/clr commit: d863edb8ba]
2020-05-28 10:59:48 -04:00
Matt Arsenault 4c698207e3 Attempt to handle case where git isn't available
Git may not be available, and this may not be a git checkout, as would
happen in a release tarball. Doesn't really attempt to get a nicer
version formatting if some of the git subcommands fail.

Change-Id: Ib568cd1310983a43f2664ded72528d7e41f554c0


[ROCm/clr commit: eb31e45123]
2020-05-28 09:23:24 -04:00
Saleel Kudchadker fd522b44ff Fix elapsed time calculation for null stream
SWDEV-237377 - This fixes time calculation where the event may
be recorded on Null stream and work submitted on other streams

Change-Id: Ie36310dea5cee2fed4a514ed01f04db4b47e571c


[ROCm/clr commit: facb05495f]
2020-05-27 18:42:07 -04:00
Michael LIAO 5a6bdf5b02 [hip] Those texture interfaces are C interfaces should be always exposed.
Change-Id: Ie34f1420839b17486346149b1672e70ec0088b54


[ROCm/clr commit: cbe2bedf42]
2020-05-27 15:03:59 -04:00
Christophe Paquot df67d8971a Call notifyCmdQueue when building the event wait list
SWDEV-237846

Change-Id: I8bf70e7ad19903767a080d8c6e516c83b0dc2545


[ROCm/clr commit: 1cfc9d1860]
2020-05-27 12:53:46 -04:00
Matt Arsenault de4f4383f6 Remove build hacks to support old manually set ROCclr variables
Change-Id: Iba8180b7260616a79723a1a9d2b0b206f178e735


[ROCm/clr commit: d191ba6585]
2020-05-27 12:53:27 -04:00
Chauncey Hui 75e59b010a SWDEV-2 - Change OpenCL version number from 3149 to 3150
[ROCm/clr commit: eb5b2745e2]
2020-05-27 03:00:03 -04:00
Sarbojit Sarkar 38f3c57f58 [doc]shfl*sync update
1. Updated FAQ with shft*sync not supported hip_faq.md
2. Corrected some of input parameter description in hcc_details/hip_runtime_api.h
3. Redirect shfl*() to shfl_*_sync() for nvcc path where CUDA > 9.0

Change-Id: I3d8184db5fcc622852c9bad96b706348e8dfc16c


[ROCm/clr commit: e288338e4a]
2020-05-27 02:17:40 -04:00
Aryan Salmanpour 71d0954669 [dtest] add a test for hipExtStreamCreateWithCUMask API
Change-Id: Ib567e559c5ab7d04ac5c300fd7e15eedfc4fb6e6


[ROCm/clr commit: c9b8a19ce0]
2020-05-26 18:15:09 -04:00
Christophe Paquot 20dadcac1e hipDeviceSynchronize needs to sync NonBlocking streams as well
SWDEV-237167

Change-Id: Ie916d8f03ce91e8ef05a2b4edc580a7021520f6f


[ROCm/clr commit: 9611b5a8b4]
2020-05-26 17:59:22 -04:00
Ramesh Errabolu 80ed6bc187 Remove dependency on hsa-ext-rocr-dev package
Change-Id: I1147a299c31ce1ae5978b7312d82fa83d796b019


[ROCm/clr commit: b941f9243f]
2020-05-26 14:40:42 -05:00
Evgeny 288fd692b7 fixing a typo
Change-Id: I2fc113e1f52ae9356636ddd4597c36c822bed49b


[ROCm/clr commit: 4ffe859cee]
2020-05-26 14:49:27 -04:00
Chauncey Hui 8dbb57226d SWDEV-2 - Change OpenCL version number from 3148 to 3149
[ROCm/clr commit: 8b256dce4e]
2020-05-26 03:00:04 -04:00
Jenkins f147af755c Merge 'amd-master-next' into 'amd-npi-next'
Change-Id: Idb00a49722b2df682d15451bcb6b1c6698e0a896


[ROCm/clr commit: 13c8317917]
2020-05-25 18:20:42 +00:00
German Andryeyev 3abb1347cf Revert "Revert "Reenable cooperative groups""
This reverts commit c6c208099b.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I93c45fae27e0a08b199542d44fb0d65fc74ea13c


[ROCm/clr commit: fb401bfe6d]
2020-05-25 14:11:58 -04:00
Evgeny 6b8d30bfae hip_prof: fixing printing pointer args
Change-Id: I93969723650f7c29d5c00a3809d3701c6a3dca44


[ROCm/clr commit: ed11059230]
2020-05-25 13:17:16 -04:00
Chauncey Hui 4012d3ca48 SWDEV-2 - Change OpenCL version number from 3147 to 3148
[ROCm/clr commit: 3dc756341d]
2020-05-24 03:00:17 -04:00
kjayapra-amd c7b79be23d SWDEV-237467 - Adding return type to comply with -Wall compiler flag.
Change-Id: I3c9935105ef262cdbf1c8ee293930b018be0197a


[ROCm/clr commit: 3603272d24]
2020-05-23 14:22:54 -04:00
kjayapra-amd e44ec607ef FEAT-30761 - Fixing fall through in gfxip major/minor detection.
Change-Id: Ib97b3dbe993e01df3360cbeda6bd0d9d366535b6


[ROCm/clr commit: ea0137fb22]
2020-05-23 12:42:44 -04:00
kjayapra-amd bc4adeaf25 SWDEV-229840 - Just adding DDEV_LOG_ENABLE instead of assigning it to -1.
Change-Id: I6859bc55e6e82ffae66ca84ee686c7e76cd8b6f2


[ROCm/clr commit: df6994c3f9]
2020-05-23 11:00:34 -04:00
kjayapra-amd 76dc2e3c9b SWDEV - 237467 - Return proper hip error codes incase of ROCclr IPC API failures.
Change-Id: I2cc8da543f70bb3d8b82520fa9b2f509d20ce3c0


[ROCm/clr commit: 6bc01b31d6]
2020-05-23 10:51:37 -04:00
Dittakavi Satyanvesh 1e0294968d hipIpcCloseMemHandle checks the status of IpcDetach
Change-Id: Ifbe8e5bbda610a1007f881627d0da1c874d03682


[ROCm/clr commit: ee4688d37e]
2020-05-23 08:47:36 -04:00
Chauncey Hui 76aeaba03e SWDEV-2 - Change OpenCL version number from 3146 to 3147
[ROCm/clr commit: 3588194e27]
2020-05-23 03:00:04 -04:00
Mahesha Shivamallappa 871ac22d36 Add support for cooperative group type - thread_block
Change-Id: If3770b6d6718a638b70f527ae2533d9ef3267ff4


[ROCm/clr commit: f4e6dec3ac]
2020-05-22 23:08:42 -04:00
kjayapra-amd c1e072980d SWDEV-237467 - Return proper hip error codes incase of ROCclr IPC API failures.
Change-Id: I1d018918ed71f6d80846b3017f7a15f4ab496554


[ROCm/clr commit: 53a890b499]
2020-05-22 22:10:15 -04:00
kjayapra-amd 0cbaf84fa6 SWDEV-236110 - Fixing uninitialized variable.
Change-Id: I26a2a6826da643b57da9746e3ce888a46c4e78f4


[ROCm/clr commit: 618d66b5fe]
2020-05-22 20:40:24 -04:00
kjayapra-amd 95d6ff1279 SWDEV-229840 - Remove false error messages.
Change-Id: I0346768a2a52913d5330bc2007a7706e2a439c47


[ROCm/clr commit: 32043017ed]
2020-05-22 18:18:41 -04:00
Matt Arsenault 800ae292c2 Remove ROCclr search hacks
find_package should now be the only way to import ROCclr. Also update
the build example comment.

The build scripts used 2 custom variables to manually specify the
build and source directories for where to find VDI. Once renamed to
ROCclr, these conflicted with the variables automatically set by
find_package(ROCclr). These hacks tried to satisfy this intermediate
step to try satisfying commit ordering problems to get through PSDB.

The INSTALL.md documentation should also be updated, but it's
completely missing any mention of ROCclr now, and still gives
directions for hcc.

Change-Id: I6fc94b6cb36241a9d4f22d24e49523367f803461


[ROCm/clr commit: a98920d9a3]
2020-05-22 15:52:35 -04:00
Vlad Sytchenko b0a332e466 Reenable texture reference tests
Change-Id: I77024476cff77951d61dc48f7e30094d6b47266c


[ROCm/clr commit: 355661b5da]
2020-05-22 14:13:50 -04:00
Alex Xie 02e1bd7d51 Move rocm include directory to the end of the list for include files
Fix compile error.

Before this change, there is compile error in my build computer. The cause is that /opt/rocm/include has an older version of CL header files.
When compiling, we should use header files from this opencl source code folders first.

This fix changes the order of include directories. Search the header files inside this opencl source code folders first.

Change-Id: I3420a634ed9e1b38b8e5201a0a39a36d61f97986


[ROCm/clr commit: a400051d3a]
2020-05-22 11:57:34 -04:00
Tao Sang 5519100f79 Fix square build failure with static lib in Jenkin
When libamdhip64_static.a is built by Jenkin, sample square cannot been
built successfully because libamdhip64_static.a is archiveved in thin
mode. Thus in the patch it will be archiveved in full mode. Meanwhile
libamdhip64_static_temp.a will be useless and thus removed.

Change-Id: Ifd3882598ef0dc5e7af8db0e389e786025ceb455


[ROCm/clr commit: 51b6c1856c]
2020-05-22 11:49:52 -04:00
Aryan Salmanpour 9d76c76746 Add support for hipExtStreamCreateWithCUMask API
Change-Id: I369d0eaca493821c4badc6b18ac02daa2fddc95f


[ROCm/clr commit: 3a30b9eb8d]
2020-05-22 11:34:06 -04:00
Matt Arsenault 11eeb6cbf2 Use option for USE_COMGR_LIBRARY
Use standard cmake option handling, and switch to standard ON/OFF for
boolean. Try to maintain compatability with the "yes" check that build
scripts are now using.

Change-Id: Ia932e93f818c0897a87bfc49b070e36c7be7dd74


[ROCm/clr commit: aa0c163066]
2020-05-22 10:28:55 -04:00
Matt Arsenault d573b01f37 Don't search ROCclr_DIR for prof_protocol.h
This points to the cmake directory where the find module was found,
not a prefix for where it was found.

Based on the search below looking in roctracer, searching in ROCclr
for the header doesn't make much sense. The header should be either
provided by ROCclr xor roctracer. Having it possibly be provided by
two different dependencies is confusing, and a potential source of
version mismatch problems.

Change-Id: Ic2f6ec03f9a7b86225cf7e5c43f39a1360318a34


[ROCm/clr commit: 1003128925]
2020-05-22 09:59:09 -04:00
Vlad Sytchenko ffe369761e Merge branch 'amd-master-next' into amd-npi-next
Change-Id: I75be5fbe5ddd6552a6a316ec99ca8833ee02cb6c


[ROCm/clr commit: e0009cdbec]
2020-05-21 19:17:10 -04:00
Matt Arsenault 39011c417d Export targets for find_package
Currently the opencl build hardcodes the path and directly includes
amdvdi_staticTargets.cmake. The proper way to find this is through
find_package, so start exporting the expected format.

Change-Id: Ic960a2dd467d57867cb96ab831dbd85bca336535


[ROCm/clr commit: 8988f34935]
2020-05-21 13:47:59 -04:00
Laurent Morichetti 39491f0ddc load functions when registered if lazy load is disabled
Change-Id: I08c9684ca4ab86a6294ed9e670f3125c1a0cc6c4


[ROCm/clr commit: 161c14c1de]
2020-05-21 09:19:20 -04:00
Chauncey Hui 25a069ae3c SWDEV-2 - Change OpenCL version number from 3145 to 3146
[ROCm/clr commit: 17094415f7]
2020-05-21 03:00:06 -04:00
Sarbojit Sarkar 68b845519d added null check
Change-Id: I7631965286bad5684bacb7e38c63031b5c691dc0


[ROCm/clr commit: 06a0de3567]
2020-05-20 23:08:55 -04:00
Aryan Salmanpour 009eed8763 check for valid queue before accessing cuMask()
Change-Id: I8d4b0dbcd097c2ec5c31dea5a3d0060f0864a7e8


[ROCm/clr commit: fec4adfd19]
2020-05-20 16:23:09 -04:00
Saleel Kudchadker 33377ef6d7 Fix elapsed time calc for hipEventElapsedTime
If the start and stop events have same command internally
then measure command end to command start
Change-Id: Ie70cfa37c06c06573f0ed58dab2bbe4434c1724b


[ROCm/clr commit: fe9aa9356b]
2020-05-20 16:02:48 -04:00
German Andryeyev e6b1dc9771 Add missing memory allocation in printf
Change-Id: I452b676612b54f70106e7ef1bcb5ce2baf7b3ffc


[ROCm/clr commit: f56a052243]
2020-05-20 14:49:59 -04:00
Alex Xie 48068bdb89 Fix compile error in certain version of GCC
Change-Id: I27f021db908bf114a685427a47cd9f0d6b2e5693


[ROCm/clr commit: 966448c53b]
2020-05-20 13:13:55 -04:00
German Andryeyev 9f69856aa4 Add a test case for async double memset
Change-Id: I8a1df610c8d3d942651f258e7812e8697067c347


[ROCm/clr commit: 3ae839c85b]
2020-05-20 12:52:29 -04:00
German Andryeyev e20f40119c Fix async mem clear
Optimization for the fence release removed a sync for mem fill.
Add simple const buffer management forr the filled pattern to avoid
pattern overwriting with the async fills.

Change-Id: I63773ac09ceec31d5396d24570e4647ff096326b


[ROCm/clr commit: 2ce6bbebc4]
2020-05-20 11:13:41 -04:00
Matt Arsenault 8789cbafa1 Don't add_subdirectory on a binary directory
This doesn't make sense and didn't do anything.

Change-Id: If6cbcd9269d8d45b091f100318afd3ab9ec6ceec


[ROCm/clr commit: a38144dec7]
2020-05-20 09:01:08 -04:00
Chauncey Hui d400543947 Modified IpcDetach to return status instead of void.
Change-Id: I68ed94b93f0383babe25eb046b4047d249a0fdc1


[ROCm/clr commit: 0af9c06968]
2020-05-20 03:38:21 -04:00
Chauncey Hui 593b1c8be7 SWDEV-2 - Change OpenCL version number from 3144 to 3145
[ROCm/clr commit: 60d6a28dc9]
2020-05-20 03:00:03 -04:00
Matt Arsenault b65ba80252 Fix include directories for cltrace
Change-Id: I8de82fa4b6ce7e1e869f1001d1710dc8673b7be5


[ROCm/clr commit: 7273fdedfe]
2020-05-19 21:41:16 -04:00
Matt Arsenault d2cb056d06 Remove include/ from #includes
These are unnecessary and an obstacle to producing a relocatable
package.

Change-Id: I0059bf7a2d11fcece0cd7ab47d7545d0df4d7099


[ROCm/clr commit: 1d267c9c08]
2020-05-19 19:35:09 -04:00