Commit Graph

3595 Commits

Author SHA1 Message Date
German Andryeyev 566684b6f4 Add the sync of the current queue
Make sure runtime waits for the current queue before
synching with device queue

Change-Id: I753b6fc0bb15a3a3d4bf03fef1152842550850c0


[ROCm/clr commit: 86e0f337fc]
2020-06-05 11:57:59 -04:00
Chauncey Hui 538b8a59ba SWDEV-2 - Change OpenCL version number from 3155 to 3156
[ROCm/clr commit: 56af79fa39]
2020-06-05 03:00:03 -04:00
kjayapra-amd d6a2b2247a FEAT-30761 - Adding defaults to all Switch cases in PalDevice gfx detection.
Change-Id: Ic998dba44d3287484d6b0da4f07f320de8e6d92b


[ROCm/clr commit: 1982c16e46]
2020-06-04 20:49:58 -04:00
Aryan Salmanpour 55c58ebfaa Add support for setting queue priority for ROCm backend
Change-Id: I67ed5a6868af79538f7f4522d8d11c043cdf3c1e


[ROCm/clr commit: b5552aa97f]
2020-06-04 20:16:32 -04:00
German Andryeyev 3d2182f8ba Revert "Avoid lock for last queued command"
This reverts commit 88c3f77bed.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ie10442c9447f010bb90c679b6cffca5b48b8d054


[ROCm/clr commit: 44bc0cb35d]
2020-06-04 18:08:17 -04:00
Saleel Kudchadker 2a42d5838d Set hidden mem witholding to 0 by default
TF doesn't reserve all available memory now. If any
client wants to reserve they can explicitly set
HIP_HIDDEN_FREE_MEM env var
Change-Id: Ied3a948b79f49aa7327f6a820e9789e39cec143b


[ROCm/clr commit: d8ca3c632c]
2020-06-04 14:37:40 -04:00
Saleel Kudchadker 0bdb497c1a Fix a potential mem leak
If a offset of the pointer is passed to free it may release
the mem object but may not release from MemObjMap. Erase the map
by getting the parent pointer.
Change-Id: I06b92548de2d49b4029efe6b511329225007cc55


[ROCm/clr commit: 2b6fea4348]
2020-06-04 14:05:11 -04:00
Chauncey Hui 5f9321b8a0 SWDEV-2 - Change OpenCL version number from 3154 to 3155
[ROCm/clr commit: f9fd4bb186]
2020-06-04 03:00:03 -04:00
Vlad Sytchenko 20c5916b32 Handle the option USE_COMGR_LIBRARY correctly
This is a follow up to http://gerrit-git.amd.com/c/compute/ec/vdi/+/359563. The setting is now either ON or OFF, never "yes".

Change-Id: I031d013a8d239dc72ef610da81bd31b8b78a3ba8


[ROCm/clr commit: 3a84fcd13e]
2020-06-03 17:25:47 -04:00
Tao Sang a0506189a1 Fix TC linux build issue due to previous Numa patch
Change-Id: I6068edaf38cac6fad187c8429707afdb727e8d41


[ROCm/clr commit: fabfc42b68]
2020-06-03 16:42:53 -04:00
kjayapra-amd a9ead10354 SWDEV-234295 - Dont clear device programs during amd::program::build()
Change-Id: I87bc7e2c830edee783ee490bbb087492467f2704


[ROCm/clr commit: e9bd41bf1a]
2020-06-03 12:18:25 -04:00
Chauncey Hui 41d93c5cad SWDEV-2 - Change OpenCL version number from 3153 to 3154
[ROCm/clr commit: 298dd2ff3f]
2020-06-03 03:00:03 -04:00
Matt Arsenault ff922a013e Use standard cmake option for USE_COMGR_LIBRARY
Change-Id: Id94d88a33772d9c9ab28f9a82c6f761d9c867476


[ROCm/clr commit: 0c539737cf]
2020-06-02 10:32:45 -04:00
Chauncey Hui bc71aa08e3 SWDEV-2 - Change OpenCL version number from 3152 to 3153
[ROCm/clr commit: 3eda2acdf8]
2020-06-02 03:00:03 -04:00
Tao Sang 6041b06b61 Support Numa-aware cpu selection
Select cpu in terms of the smallest Numa distance for a GPU device.
This will improve performance of hipMemcpy in the mode of
hipMemcpyHostToDevice or hipMemcpyDeviceToHost for small buffer.
`

Change-Id: I2860f1f83b79be0dff7bf5e64cf68ab4448db0a1


[ROCm/clr commit: aedb9590be]
2020-06-01 21:01:24 -04:00
Alex Xie 3167f3c725 ROCMOPS-924 centos-6.10 support for opencl_on_rocclr build
Fix a build error in centos 6.10. When linking, ld cannot find function
clock_getres. This function is from librt (for glibc version before 2.17).

Change-Id: I698f768d0618a054d5d0fc73b9f1916a7ce542fb


[ROCm/clr commit: 9a8bd9e68b]
2020-06-01 17:47:03 -04:00
Chauncey Hui 109e92580e SWDEV-2 - Change OpenCL version number from 3151 to 3152
[ROCm/clr commit: ffe6516bb7]
2020-05-30 03:00:03 -04:00
Alex Xie 9f1374f442 Add document README.md
Change-Id: Ib186c1b55663e397b562ec53fca2d476de0c96b3


[ROCm/clr commit: 9e4d81fcb6]
2020-05-30 01:26:03 -04:00
Payam Ghafari a0fad24cf0 Revert "adding HIP_ENABLE_LAZY_KERNEL_LOADING flag"
This reverts commit 5540e98745.

Reason for revert: HIP_ENABLE_LAZY_KERNEL_LOADING is needed before the runtime is initialized, so this utility cannot be used

Change-Id: I49f8ddb98c9a85b9a77b8fd4b236d06b6b2b0f32


[ROCm/clr commit: ac8d1ba687]
2020-05-29 21:26:25 -04:00
Matt Arsenault 4eacd3d38c Don't include llvm directories
There aren't any llvm includes here.

Change-Id: Ifce797c50bde772845923b1054fadd4173b3119a


[ROCm/clr commit: 4d1cbcba4e]
2020-05-29 15:36:26 -04:00
German Andryeyev 88c3f77bed Avoid lock for last queued command
Use atomics for last queued command update

Change-Id: I759e9d78ea72f23c0d45dbede6250b231e122276


[ROCm/clr commit: dc4e09a63a]
2020-05-29 11:06:55 -04:00
Chauncey Hui 25f93bc284 SWDEV-2 - Change OpenCL version number from 3150 to 3151
[ROCm/clr commit: a811cfc567]
2020-05-29 03:00:03 -04:00
Christophe Paquot 992fbe8215 Use a dedicated lock for last queued command set/get
Change-Id: If3d2144841c7863cf7afe2ca85aea62e0a3a33c7


[ROCm/clr commit: 0782acabb5]
2020-05-28 12:49:39 -07: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
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
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
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
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
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 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
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
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
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 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 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
Aakash Sudhanwa c6c208099b Revert "Reenable cooperative groups"
This reverts commit 7b00a525ba.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I8954b37c354382804a139d80e2551c381fd9b2ed


[ROCm/clr commit: abc115bda8]
2020-05-19 18:21:48 -04:00
Jason Tang d917bbfc73 SWDEV-236894 - Rename LOG_LEVEL to AMD_LOG_LEVEL
Change-Id: Ibdfaf0fb615ac343c05d0fa3c3ace9cbb592ecf3


[ROCm/clr commit: 49224d95c7]
2020-05-19 17:32:24 -04:00
Jason Tang f94e958680 Add major/minor/stepping to device layer
Change-Id: If82ea55a46b166b243a98089a6e9c40ccfdb479f


[ROCm/clr commit: cd2a713d63]
2020-05-17 12:57:34 -04:00
Chauncey Hui 75ae2a887e SWDEV-2 - Change OpenCL version number from 3143 to 3144
[ROCm/clr commit: 90c975224f]
2020-05-16 03:00:03 -04:00
Jason Tang 5101aa9867 Correct the way to get subtarget
Change-Id: I47805424c0bd69547cff0ab71c369552016052b5


[ROCm/clr commit: 9b5e1fec6c]
2020-05-15 17:18:39 -04:00