Tao Sang
d3dfb225fc
Support static lib of comgr
...
Add "BUILD_SHARED_LIBS" flag to cmake file.
To build libamdhip64.so, you don't need change cmake cmd.
To build libamdhip64.a, you need append
-DBUILD_SHARED_LIBS=OFF
to cmake cmd.
Change-Id: Ibc30ed52963314b2b8cc1df73c360fc1ba15780a
[ROCm/clr commit: 4d67856bed ]
2020-07-11 09:41:03 -04:00
Chauncey Hui
d9c0ab5f91
SWDEV-2 - Change OpenCL version number from 3174 to 3175
...
[ROCm/clr commit: d37d1fe0a4 ]
2020-07-11 03:00:03 -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
Chauncey Hui
39ddb8d8d4
SWDEV-2 - Change OpenCL version number from 3173 to 3174
...
[ROCm/clr commit: 9ed1767c02 ]
2020-07-10 03:00:04 -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
Chauncey Hui
153229ec2a
SWDEV-2 - Change OpenCL version number from 3172 to 3173
...
[ROCm/clr commit: 1b69c85913 ]
2020-07-08 03:00:03 -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
Chauncey Hui
bf3fd89566
SWDEV-2 - Change OpenCL version number from 3171 to 3172
...
[ROCm/clr commit: 5c2e64a43c ]
2020-07-07 03:00:03 -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
Tao Sang
fa89271aaf
Fix crashing of private elf apis in static lib
...
When rocr and hip-rocclr are static libs, rorc will wrongly reference
private elf apis, then crash will happen. By renaming asm symbol
names of private elf apis, rocr will reference public elf apis, thus
crashing won't happen.
Change-Id: I7cf552f1fae5fe09adeac3aec1a24445f39d406c
[ROCm/clr commit: 2c551e44cc ]
2020-07-06 13:41:09 -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
f67b99fc26
Enable warnings on unused functions
...
There weren't all that many to fix, and it's not even the most
prevalent warning.
Change-Id: I286aaa42e3c4e305b1e1918f302bbf71e41dd47d
[ROCm/clr commit: 3a564bc6cb ]
2020-07-06 10:29:29 -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
a2b54e7b4a
Fix -Wunused-private-field
...
Change-Id: Iedf121025a33bf08eed310e3d85302f8bf3ac7d9
[ROCm/clr commit: 7124974148 ]
2020-07-06 10:27:43 -04:00
Matt Arsenault
2c395913a7
Remove unused functions
...
Change-Id: I55db791019c511de83d8b895e3a48b3d7475aeac
[ROCm/clr commit: 9e3e41ca2e ]
2020-07-06 10:27:29 -04:00
Matt Arsenault
3bd3b7298a
Fix compiler test for clang
...
Change-Id: I06e01d3422ec4aa8d0fb8f5d9a44e2a840531a87
[ROCm/clr commit: a430215067 ]
2020-07-06 10:27:11 -04:00
Chauncey Hui
2bc83df463
SWDEV-2 - Change OpenCL version number from 3170 to 3171
...
[ROCm/clr commit: f9f7508578 ]
2020-07-05 03:00:03 -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
Chauncey Hui
457a9d48f5
SWDEV-2 - Change OpenCL version number from 3169 to 3170
...
[ROCm/clr commit: f07fedd00a ]
2020-07-01 03:00:03 -04:00
Payam
228d8e7c12
update debug print time to be us
...
Change-Id: I6f49304414ffc209f0fa1cb7199557c8423fcfa7
[ROCm/clr commit: 07848d7926 ]
2020-06-29 18:45:24 -04:00
Chauncey Hui
6107041c84
SWDEV-2 - Change OpenCL version number from 3168 to 3169
...
[ROCm/clr commit: 38ae71d10b ]
2020-06-27 03:00:05 -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
Chauncey Hui
fa53a0a233
SWDEV-2 - Change OpenCL version number from 3167 to 3168
...
[ROCm/clr commit: 01d8a13065 ]
2020-06-24 03:00:03 -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
Vlad Sytchenko
ec1205b497
Revert "Added file logging for rocclr & HIP"
...
This reverts commit bc5075c2c5 .
This change broke the legacy-complib build in p4. It seems that we can't use any flags in debug.cpp.
Change-Id: I17bb83651b85d6f415d9074634b479658fd4c3f9
[ROCm/clr commit: 20c24cae93 ]
2020-06-23 16:46:56 -04:00
Jason Tang
f2084f8fad
Remove finding OpenCL library
...
Change-Id: I44faa5c3d40430ae9c9bc5440252812a8e7f717d
[ROCm/clr commit: 6f2dfea285 ]
2020-06-23 12:42:42 -04:00
Sarbojit Sarkar
bc5075c2c5
Added file logging for rocclr & HIP
...
Change-Id: Ic0a54f6ee82d010b011739e0059778ed31833518
[ROCm/clr commit: 5f055d227d ]
2020-06-23 04:30:36 -04:00
Chauncey Hui
7511534bca
SWDEV-2 - Change OpenCL version number from 3166 to 3167
...
[ROCm/clr commit: bafbbe663e ]
2020-06-23 03:00:03 -04:00
German Andryeyev
ebe5c3d381
Remove extra barriers
...
Don't flush current batch if the dependent wait is a nop
Change-Id: I8a8722b9011fe042c1a4ce195938290fc75e7c86
[ROCm/clr commit: c18892a590 ]
2020-06-22 12:41:02 -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
Chauncey Hui
e8de9c3322
SWDEV-2 - Change OpenCL version number from 3165 to 3166
...
[ROCm/clr commit: 836ee7eddb ]
2020-06-20 03:00:03 -04:00
Tao Sang
ce1baf5d04
Support numa policy set by user
...
Add CL_MEM_FOLLOW_USER_NUMA_POLICY
Change-Id: I90a19dac7641827dff2ceb9ef8ae5f3467ed87a1
[ROCm/clr commit: 53264a8a4a ]
2020-06-19 18:16:47 -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
Chauncey Hui
8153018c23
SWDEV-2 - Change OpenCL version number from 3164 to 3165
...
[ROCm/clr commit: c9c4250bbe ]
2020-06-18 03:00:03 -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
Chauncey Hui
33ea76ec1c
SWDEV-2 - Change OpenCL version number from 3163 to 3164
...
[ROCm/clr commit: 7475e17537 ]
2020-06-17 03:00:03 -04:00
German Andryeyev
51db339313
Disable P2P emulation for HIP
...
Some apps use P2P transfer without any validation for peer access.
Report an error if runtime has found such a request.
Change-Id: I3bf728f1fc3969697ade97bb1d2f1dce294078e2
[ROCm/clr commit: 01c2727a3a ]
2020-06-16 11:21:54 -04:00
Vlad Sytchenko
baaf3e9d1f
Fix typo from previous change
...
Change-Id: Ib8f3418a3460d86d75fc5529ed6270a164e9b10e
[ROCm/clr commit: b835120dfa ]
2020-06-16 11:12:33 -04:00
Chauncey Hui
c6696b3ccb
SWDEV-2 - Change OpenCL version number from 3162 to 3163
...
[ROCm/clr commit: e9cee93786 ]
2020-06-16 03:00:03 -04:00
Vlad Sytchenko
0b3fc7bc5d
Fix some -Wunused-but-set-variable warnings
...
Change-Id: I281583b5abdfc09d5dd8b7dfb20b8821581db193
[ROCm/clr commit: 5b9af8f28d ]
2020-06-15 17:51:01 -04:00
Vlad Sytchenko
23b193fcd8
Fix -Wsequence-point warning
...
Change-Id: Ib6322e06f83887da4a29f8eafb99b743211e851d
[ROCm/clr commit: e50a9eec9d ]
2020-06-15 17:40:11 -04:00
Vlad Sytchenko
f88ff3ebc1
Enable the use of some warnings when building ROCclr
...
Enabling anything beyond -Wall like -Wextra or -pedantic seems impossible as our code base explodes in thousands of warnings.
-Wno-unused-{variable/function} is not present in the p4 build, but with gcc7.4.0 we get hundreds of instances of this warning being triggered in the code base.
With this change only two warnings show up during the build - -Wsequence-point and -Wunused-but-set-variable. The fix for the first is alredy in review.
Change-Id: I2ff37981377487b0e07fd9490498e38a60792c0c
[ROCm/clr commit: 947dbe82fb ]
2020-06-15 17:32:45 -04:00
German Andryeyev
cfe7062be1
Fix compile error in ATI make build
...
Change-Id: Id9d23b8f46bf1b97c0f02c8ae0edd94e6963b1b5
[ROCm/clr commit: afe825c506 ]
2020-06-15 10:31:57 -04:00