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
Chauncey Hui
705fc47138
SWDEV-2 - Change OpenCL version number from 3181 to 3182
...
[ROCm/clr commit: c09b1ee0cc ]
2020-07-22 03:00:05 -04:00
Alex Xie
c6649a8c7f
SWDEV-241977 [ROCm QA] Random Soft hang observed while running TF and Caffe2 benchmarks
...
Change-Id: I42016c11db15411b86e7b8130d6ba557bc22dbb7
[ROCm/clr commit: ce038f3163 ]
2020-07-22 02:03:48 -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
Matt Arsenault
8ff20547f1
Use alignas to effectively define padding and fix 32-bit build
...
Change-Id: Ib318d2fe847625567de93c9268cf000ec35a921f
[ROCm/clr commit: a9ffa384e8 ]
2020-07-21 10:53:47 -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
Chauncey Hui
e959dffa0b
SWDEV-2 - Change OpenCL version number from 3180 to 3181
...
[ROCm/clr commit: 9812cf8079 ]
2020-07-21 03:00:04 -04:00
Matt Arsenault
4668c291e2
Fix -Wunused-private-field
...
Change-Id: Ib60e8dc2625c0c5e10fa109e452af0bc6174e763
[ROCm/clr commit: 51f4aa305b ]
2020-07-20 11:23:18 -04:00
Chauncey Hui
1437d6fa97
SWDEV-2 - Change OpenCL version number from 3179 to 3180
...
[ROCm/clr commit: 92cdd43a28 ]
2020-07-18 03:00:03 -04:00
Payam
81d7cfcda3
cleanup warnings
...
Change-Id: I3715fe6aa540c5a40fe2aa324c9fbeab1e67f717
[ROCm/clr commit: 2dc41007d7 ]
2020-07-17 14:25:52 -04:00
Chauncey Hui
6fde3df1c5
SWDEV-2 - Change OpenCL version number from 3178 to 3179
...
[ROCm/clr commit: 0c84ce5608 ]
2020-07-17 03:00:03 -04:00
Matt Arsenault
5e2eed5ea1
Fix windows build
...
Change-Id: I0c5fff636ec43d5c1daf888457f77ef214a29566
[ROCm/clr commit: 2f3e9afab7 ]
2020-07-16 17:08:22 -04:00
Payam
a1d94580ca
clean up warnings
...
Change-Id: I5421ab90234278920e6080599bb40ffcb3eaa04d
[ROCm/clr commit: 94e623181b ]
2020-07-16 09:36:26 -04:00
Chauncey Hui
63c5c84c0f
SWDEV-2 - Change OpenCL version number from 3177 to 3178
...
[ROCm/clr commit: dfd78a65f2 ]
2020-07-16 03:00:03 -04:00
Matt Arsenault
b39da2994f
Correct total size of Semaphore to be 64
...
Change-Id: I20db76eab06fc8a0b3869348c537e7303dfa6466
[ROCm/clr commit: dabda131bd ]
2020-07-15 16:51:19 -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
German Andryeyev
c9f95a13ee
Disable sysmem alloc for SVM memory
...
Device backend is responsible for memory allocation, including
possible HMM support.
Change-Id: I0e4e5ae3b9551790f4f85f0791cca63196cc896e
[ROCm/clr commit: af1c4a5794 ]
2020-07-15 12:04:23 -04:00
Payam
4e766cc4b2
Reset each thread's affinity to all avilable cpus
...
reset happens at the start of the thread SWDEV-240685
Change-Id: I6c35473bab67d02f76a8013ab9394f293c6f2b07
[ROCm/clr commit: 55b5f5f06c ]
2020-07-15 09:41:50 -04:00
Payam
f9c2313c79
Adding new macro for HIP using ClPrint
...
calculates duration of a call
Change-Id: I7cca673f6dabc618ec543e3bd6c5102aa76edc3a
[ROCm/clr commit: 47088fea0d ]
2020-07-15 09:40:59 -04:00
Chauncey Hui
6bc177cc6a
SWDEV-2 - Change OpenCL version number from 3176 to 3177
...
[ROCm/clr commit: 1e349179e2 ]
2020-07-15 03:00:04 -04:00
Christophe Paquot
f14d79c587
Make append and setLastQueuedCommand atomic
...
Two threads can enqueue to the same HostQueue (HostQueue::enqueue)
and result in last queued command being the first one reachine queue_.enqueue
NOTE: Temporarly make setLastQueuedCommand empty function to pass the build
Change-Id: Id09c3a28d184986f52b2ec86a2f6a18c40df1f0b
[ROCm/clr commit: 3d15a1e291 ]
2020-07-14 18:22:45 -04:00
Chauncey Hui
03361fed43
SWDEV-2 - Change OpenCL version number from 3175 to 3176
...
[ROCm/clr commit: 453ea922a7 ]
2020-07-12 03:00:03 -04:00
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