Tao Sang
f3b85497ae
Replace private libelf with elfio
...
Change-Id: I4c630d78f7bf23dda85ec8480bb2790864405657
[ROCm/clr commit: e986f5c820 ]
2020-08-26 12:32:13 -04:00
Jason Tang
da0a525982
SWDEV-239502 - fix interop regression
...
When header==0, the legitimate packet->header is wiped out, so also add an assert.
Change-Id: I6b3037d4618719262b0d7c1792bd54f768a63660
[ROCm/clr commit: 19d1497fa2 ]
2020-08-25 18:11:18 -04:00
Aryan Salmanpour
771a8abb90
SWDEV-248499 Fix a crash when printf is used with cooperative kernels
...
root cause - cooperative queue is not inserted into queuePool_ (HSA queues) of ROC device calss causing a crash when creating hostcall buffers for printf
Change-Id: I3f9aceb4e5fe6a7c7a2a549a4bb0a3511fe02799
[ROCm/clr commit: d2b9d267b2 ]
2020-08-25 16:51:34 -04:00
Jason Tang
bbe0df36bf
SWDEV-239502 - Create copyImageBuffer_ without flags
...
Change-Id: Ifcb5992d58f3419635d2aca2d51f2dacd7cd466d
[ROCm/clr commit: c33470ab4d ]
2020-08-14 17:25:58 -04:00
agodavar
8b61666254
SWDEV-245503 - Improve hipModuleLoad performance
...
Change-Id: Icbcd37d9b4e6d79f296cc8693edf25689b19fa11
[ROCm/clr commit: e914f281ff ]
2020-08-14 05:24:52 -04:00
Vlad Sytchenko
7395ae1366
Remove unnecessary SVM commit
...
Change-Id: I5cb887ead166401a59b0c980f29fd615b19745be
[ROCm/clr commit: 6780a9ac66 ]
2020-08-13 13:21:03 -04:00
Jason Tang
8199283c0e
SWDEV-239502 - Fix image test regression
...
Change-Id: Iea35fb0f1964d09a35131b4a20ac8f6f82850a8e
[ROCm/clr commit: db5a2d4c2d ]
2020-08-13 11:58:20 -04:00
German Andryeyev
a5ca15a599
Enable prefetch async functionality
...
Fix a typo with the name define, when compilation wasn't enabled.
Force CPU prefetch if system was forced in runtime
Change-Id: Id4b578f9fa44a45426fdb5d8ecb1da803aa42313
[ROCm/clr commit: 6e69258b69 ]
2020-08-13 11:09:10 -04:00
Jason Tang
3315ef8a45
SWDEV-247463 - Fix regression: ocltst segfaults
...
Change-Id: Iadb55ba45d6c8ade0757fd970ac4c6cde1805de3
[ROCm/clr commit: 152a2dfb5a ]
2020-08-09 11:28:09 -04:00
Jason Tang
d4cbe1a339
Fix HSAIL build
...
Change-Id: I34209b3ae0ce0eefc30e464fd7f081a0b62449b0
[ROCm/clr commit: 7bb671fa55 ]
2020-08-07 17:18:38 -04:00
German Andryeyev
4a2b2e77f6
Sync the current queue for P2P staging
...
P2P staging uses device queues for transfer, hence the current
queue must be in sync
Change-Id: I8372a60590eed9dde62cb4c67ef4df5df82a8e8d
[ROCm/clr commit: 0dc47d55d2 ]
2020-08-07 14:36:50 -04:00
Jason Tang
c926997eb8
Use ARCTURUS
...
Change-Id: Ib25d150c9314180178d5cf00835a06e47c02c2a9
[ROCm/clr commit: 6f8eaff4df ]
2020-08-07 11:14:24 -04:00
Jason Tang
04054e9b60
SWDEV-246565 - Remove passing -msram-ecc to Comgr
...
Change-Id: I1604a0014186a5779561da3ec3eefec65aff5c37
[ROCm/clr commit: f8f6bc16a1 ]
2020-08-06 12:48:53 -04:00
Jatin Chaudhary
ba5507f650
Adding device memory channel information
...
Change-Id: I47dfa3daff97b1e3f42484dde5a4aa64244ac544
[ROCm/clr commit: 2f3df8e691 ]
2020-08-06 06:54:35 -04:00
Saleel Kudchadker
820a456980
Add Queue profling param and toggle for HIP
...
Use signal timestamps if NDRange command takes forceProfile flag.
Change-Id: Ib7f187d781fd78a7346818afb3344a9378f4c104
[ROCm/clr commit: ec73340348 ]
2020-08-06 03:09:53 -04:00
Anusha Godavarthy Surya
de10e7e1e6
SWDEV-244600 - HIP BLIT code object needs to have reserved symbol name
...
Change-Id: I8401fea5eab71c0f7414eec0666066d9553a6622
[ROCm/clr commit: 093f7fa3ca ]
2020-08-06 01:14:06 -04:00
Jason Tang
e1b0edf35c
SWDEV-246687 - Do not use std::vector reference as class member cuMask_
...
The current implementation creates default reference in the stack and assigns it to class member cuMasks_, so whenever the content of the stack changes, cuMask_ would change.
Change-Id: Iefab63c335d504b83c4ae90bd34ae76c6afb8f3c
[ROCm/clr commit: 8ef5da00c7 ]
2020-08-05 16:57:36 -04:00
German Andryeyev
e34eaf17b9
Process cache coherency before mem dependency tracker
...
Optimizaiton to remove extra syncs uncovered a bug with the cache
coherency layer, there runtime could lose the track of mem address
if coherency layer performed a sync.
Change-Id: I25647cfa4a4be9cdbd8577ff076a740bbdac79c8
[ROCm/clr commit: 91a25df04f ]
2020-08-04 16:33:18 -04:00
Vlad Sytchenko
9d72bf6523
Fix typo
...
Change-Id: I8b659508f567afa126aeb7749b536b443935e3df
[ROCm/clr commit: 9d0b0c32a9 ]
2020-08-04 11:15:21 -04:00
Vlad Sytchenko
c98a71dc9e
Only enable HIP for Vega20 on non-ROCm platforms
...
SWDEV-245906
All asics will still be supported for developer builds.
Change-Id: I0eac2246162d133fe63449c200d996fe05bd51bd
[ROCm/clr commit: 24c1c48db7 ]
2020-07-27 13:09:58 -04:00
Tao Sang
44eb207f8d
Apply constexpr on global constant varaibles
...
When HIP_ENABLE_DEFERRED_LOADING=0, many global variables will be
referenced but they are not initialized in that early time. The patch
will use constexpr to initialze global constant varables in compile
time.
Change-Id: I9d538b7abc6a0ce700ec3332b97fc144db5fc1ef
[ROCm/clr commit: fdef6f722f ]
2020-07-22 22:14:13 -04:00
Jason Tang
11f8a869f1
SWDEV-232197 - Fix PAL build
...
Change-Id: Iad306077cadfd8de1491ac0a188eee4802d8ce1f
[ROCm/clr commit: 2800fc2fa3 ]
2020-07-22 17:10:03 -04:00
Jason Tang
fdf3ebad76
SWDEV-232197 - Use TargetID for action_info_set_isa_name()
...
Change-Id: I6661a2bbc2e55586c1b5029694d67cb54a4f23a6
[ROCm/clr commit: 65f4230494 ]
2020-07-22 13:47:17 -04:00
Freddy Paul
872b0bedee
Align to new hsa cmake target usage.
...
HIP or any ROCm component above HIP may not be calling
hsa-runtime directly. OpenCl and HIP are the two components
calling ROCclr and to bring in the transitive dependency of
thunk,ROCR,amd_comgr it is better to have the dependency
chain set correctly in the ROCclr cmake target. With this
change OpenCl or HIP should not be setting ROCR dependency
directly.
This helps to link OpenCl(libamdocl.so) link statically with
comgr,hsa,thunk.
Change-Id: I0d538b7abc6a0ce700ec3332b97fc144db5fc5ff
[ROCm/clr commit: 6b8ae3dd77 ]
2020-07-22 11:21:09 -04:00
Jatin Chaudhary
7dae2632b9
Adding AnyOrder Flag
...
Change-Id: I6baaef42b98adfbc8cf2605e175ec007e008045f
[ROCm/clr commit: 48690f29e9 ]
2020-07-22 00:25:04 -04:00
Tao Sang
10f1bfc765
Add numa lib detection in cmake
...
If numa lib is in building system, define ROCCLR_NUMA_SUPPORT to
support numa; otherwise, don't support numa.
Change-Id: I3848d7fdec5a3813ff1edad9b71ff04372dc0b9a
[ROCm/clr commit: 214827defa ]
2020-07-21 14:58:56 -04:00
Rahul Garg
3398448fb0
Handle size 0 symbols
...
Change-Id: I1629c5027ec5f9af48c8e9e0696829b844423096
[ROCm/clr commit: 60473ae542 ]
2020-07-21 10:10:36 -04:00
Jason Tang
cd1ee42c36
SWDEV-232197 - Use HSA_ISA_INFO_NAME as the TargetID
...
TargetID will be passed to LC compiler.
Change-Id: I0385634922c11d53b57ebd596047698c47bda72b
[ROCm/clr commit: 8b7e0f3cfe ]
2020-07-21 09:24:03 -04:00
Matt Arsenault
3cae0b7649
Fix -Wmissing-braces
...
Change-Id: I2394b6923c789f36e72242f4b196844cc0ee90ba
[ROCm/clr commit: 5577eabcea ]
2020-07-15 16:51:03 -04:00
Jason Tang
e69ff5e142
SWDEV-244000 - Print freeMem_ for memory accounting
...
Change-Id: I5bbce213236a109e9aa69766d2d4d370b58d0d08
[ROCm/clr commit: 5e0bb5bd39 ]
2020-07-15 13:44:05 -04:00
kjayapra-amd
701914416e
SWDEV-243423 - Avoid repeated metadata processing if the unbundled binary_ptr is same.
...
Change-Id: I71e008021b728dec61187d9ff29483ad8c4cad5c
[ROCm/clr commit: e993bf9f47 ]
2020-07-10 10:35:16 -04:00
agodavar
f6c4063ec1
SWDEV-242592:Remove define of UndefinedVars in setKernels
...
Change-Id: I51b0c5ac6c4cb2564a53f7c45fdf8a893a5edbd3
[ROCm/clr commit: de31b341d2 ]
2020-07-09 23:15:31 -04:00
kjayapra-amd
adb0ce1c43
SWDEV-240165 - Move all amd::MemObjMap_ reference to ROCclr and only allow base ptr to get ipc handle.
...
Change-Id: I9de10a0c4ba4dee3b3c8b972966840ab807001d8
[ROCm/clr commit: 16e6b65b5c ]
2020-07-09 21:19:45 -04:00
Jatin Chaudhary
260a83c546
Replacing deprecated HSA API calls with newer ones
...
Change-Id: Iebe2c00e717ab0e47c61611752b717966c719994
[ROCm/clr commit: cd1e364911 ]
2020-07-08 00:32:24 -04:00
Aryan Salmanpour
8d083a3c61
Always print error message with the returned error code before abort
...
Change-Id: I8479abc586937a50c90b2785c4ce7364e6e9732b
[ROCm/clr commit: 4a901f3dd3 ]
2020-07-07 16:28:30 -04:00
Tao Sang
7591ff8172
Fix static lib crash by setting top init_priority
...
Set top init_priority on affecting global variables so that
they will be created firstly and destroyed lastly.
Change-Id: Ied59fbecab66ba8195c4a7a02b6bef9fa2fad3af
[ROCm/clr commit: f7bf882981 ]
2020-07-06 16:54:10 -04:00
Matt Arsenault
c9239f4f78
Remove .value_type from code object v3 metadata
...
This seems to not actually have any function. The OpenCL API test
passes without it, and the way it's produced is problematic.
Change-Id: I384bfa01dee7023484348b184ddd1b2d44a91f7d
[ROCm/clr commit: cfed3f310d ]
2020-07-06 11:07:30 -04:00
Matt Arsenault
8892ba072f
Fix unused function warnings for conditionally used functions
...
Change-Id: Ied23c571b949abef1816914986f19b14aca3d2f3
[ROCm/clr commit: c56a82fd05 ]
2020-07-06 10:28:43 -04:00
Matt Arsenault
2c395913a7
Remove unused functions
...
Change-Id: I55db791019c511de83d8b895e3a48b3d7475aeac
[ROCm/clr commit: 9e3e41ca2e ]
2020-07-06 10:27:29 -04:00
German Andryeyev
67c2bf6df4
Return always true for P2P validation under ROCr
...
Change-Id: Id32a5a94a642e708d1d042c5247af38501bec153
[ROCm/clr commit: 059832b526 ]
2020-07-04 11:38:04 -04:00
Aryan Salmanpour
934763278b
remove unused argument from enableHostcalls/disableHostcalls functions
...
Change-Id: I351a6b4e23cd9f118310c5c79b1afcb4758fde1b
[ROCm/clr commit: 34b82eb998 ]
2020-06-26 16:33:30 -04:00
Tao Sang
9273cfaa15
Support numa policy set by user
...
Add hostNumaAlloc() to support numa policy set by user
Change-Id: Ib6c3e838aa53e3d9b3db9735c585df46a1c98944
[ROCm/clr commit: da94cd0de1 ]
2020-06-23 18:57:03 -04:00
Dittakavi Satyanvesh
b7801b2035
SWDEV-240566 adds error message before abort
...
Change-Id: I4dbd089daa5e6fde5e8722dc2395225dd822561c
[ROCm/clr commit: 7a3b8c6dd2 ]
2020-06-22 10:12:49 -04:00
Jason Tang
b2e264b2c1
For apu: call commitSvmMemory() from Device::svmAlloc()
...
Change-Id: Ic6e9b2ad4624e7e1c50835d3825254c76e764bf0
[ROCm/clr commit: 532083f87c ]
2020-06-22 10:09:32 -04:00
Jason Tang
f1110d715e
Set the tiled_ flag according to ImageCreateInfo
...
Change-Id: I3e1b2fdd15e32c3c24f4341001b068738c98e388
[ROCm/clr commit: 138b2d3ce2 ]
2020-06-19 12:34:07 -04:00
kjayapra-amd
5a1e09a37d
SWDEV-229840 - Add Debug prints when the element is already present in MemObjMap_
...
Change-Id: I21129d087e73cc2a9e35f03e6a1a2dc527626f48
[ROCm/clr commit: 71c05075ba ]
2020-06-19 12:33:20 -04:00
German Andryeyev
a1974c06e9
Switch PAL to interface 610
...
Change-Id: Ida563f38513789f5ba105ac92a9737c59cd5d90d
[ROCm/clr commit: 01fcf82448 ]
2020-06-19 11:40:12 -04:00
Jason Tang
fb0be5d639
Merge pal Resource mapLayers/unmapLayers logic into map/unmap
...
Change-Id: I0198fb96f104539fb557f91160665e60ba576132
[ROCm/clr commit: 155ff5bdcc ]
2020-06-19 10:51:48 -04:00
Aryan Salmanpour
6943b4fa83
move hostcall-based implementation of messages/printf from rocm backend to the common device layer
...
SWDEV-232428
Change-Id: I14b774e66a1783569c6d34d8759c1faa5f340e27
[ROCm/clr commit: 1bd265f8d6 ]
2020-06-18 13:49:28 -04:00
Saleel Kudchadker
f00b041e6c
Reset GPU_FORCE_BLIT_COPY_SIZE as its fixed in KFD
...
Commit ebcfa85cf7ebb26c96fca48a34292d88e74dd675
fixes programming of SDMA*_ULV_CNTL.HYSTERIS register
Change-Id: Ibb1d824bf3f8e351f840adbc099601b322f935f6
[ROCm/clr commit: d8efc31c34 ]
2020-06-17 13:23:41 -07:00