Chauncey Hui
0c84ce5608
SWDEV-2 - Change OpenCL version number from 3178 to 3179
2020-07-17 03:00:03 -04:00
Matt Arsenault
2f3e9afab7
Fix windows build
...
Change-Id: I0c5fff636ec43d5c1daf888457f77ef214a29566
2020-07-16 17:08:22 -04:00
Payam
94e623181b
clean up warnings
...
Change-Id: I5421ab90234278920e6080599bb40ffcb3eaa04d
2020-07-16 09:36:26 -04:00
Chauncey Hui
dfd78a65f2
SWDEV-2 - Change OpenCL version number from 3177 to 3178
2020-07-16 03:00:03 -04:00
Matt Arsenault
dabda131bd
Correct total size of Semaphore to be 64
...
Change-Id: I20db76eab06fc8a0b3869348c537e7303dfa6466
2020-07-15 16:51:19 -04:00
Matt Arsenault
5577eabcea
Fix -Wmissing-braces
...
Change-Id: I2394b6923c789f36e72242f4b196844cc0ee90ba
2020-07-15 16:51:03 -04:00
Jason Tang
5e0bb5bd39
SWDEV-244000 - Print freeMem_ for memory accounting
...
Change-Id: I5bbce213236a109e9aa69766d2d4d370b58d0d08
2020-07-15 13:44:05 -04:00
German Andryeyev
af1c4a5794
Disable sysmem alloc for SVM memory
...
Device backend is responsible for memory allocation, including
possible HMM support.
Change-Id: I0e4e5ae3b9551790f4f85f0791cca63196cc896e
2020-07-15 12:04:23 -04:00
Payam
55b5f5f06c
Reset each thread's affinity to all avilable cpus
...
reset happens at the start of the thread SWDEV-240685
Change-Id: I6c35473bab67d02f76a8013ab9394f293c6f2b07
2020-07-15 09:41:50 -04:00
Payam
47088fea0d
Adding new macro for HIP using ClPrint
...
calculates duration of a call
Change-Id: I7cca673f6dabc618ec543e3bd6c5102aa76edc3a
2020-07-15 09:40:59 -04:00
Chauncey Hui
1e349179e2
SWDEV-2 - Change OpenCL version number from 3176 to 3177
2020-07-15 03:00:04 -04:00
Christophe Paquot
3d15a1e291
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
2020-07-14 18:22:45 -04:00
Chauncey Hui
453ea922a7
SWDEV-2 - Change OpenCL version number from 3175 to 3176
2020-07-12 03:00:03 -04:00
Tao Sang
4d67856bed
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
2020-07-11 09:41:03 -04:00
Chauncey Hui
d37d1fe0a4
SWDEV-2 - Change OpenCL version number from 3174 to 3175
2020-07-11 03:00:03 -04:00
kjayapra-amd
e993bf9f47
SWDEV-243423 - Avoid repeated metadata processing if the unbundled binary_ptr is same.
...
Change-Id: I71e008021b728dec61187d9ff29483ad8c4cad5c
2020-07-10 10:35:16 -04:00
Chauncey Hui
9ed1767c02
SWDEV-2 - Change OpenCL version number from 3173 to 3174
2020-07-10 03:00:04 -04:00
agodavar
de31b341d2
SWDEV-242592:Remove define of UndefinedVars in setKernels
...
Change-Id: I51b0c5ac6c4cb2564a53f7c45fdf8a893a5edbd3
2020-07-09 23:15:31 -04:00
kjayapra-amd
16e6b65b5c
SWDEV-240165 - Move all amd::MemObjMap_ reference to ROCclr and only allow base ptr to get ipc handle.
...
Change-Id: I9de10a0c4ba4dee3b3c8b972966840ab807001d8
2020-07-09 21:19:45 -04:00
Chauncey Hui
1b69c85913
SWDEV-2 - Change OpenCL version number from 3172 to 3173
2020-07-08 03:00:03 -04:00
Jatin Chaudhary
cd1e364911
Replacing deprecated HSA API calls with newer ones
...
Change-Id: Iebe2c00e717ab0e47c61611752b717966c719994
2020-07-08 00:32:24 -04:00
Aryan Salmanpour
4a901f3dd3
Always print error message with the returned error code before abort
...
Change-Id: I8479abc586937a50c90b2785c4ce7364e6e9732b
2020-07-07 16:28:30 -04:00
Chauncey Hui
5c2e64a43c
SWDEV-2 - Change OpenCL version number from 3171 to 3172
2020-07-07 03:00:03 -04:00
Tao Sang
f7bf882981
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
2020-07-06 16:54:10 -04:00
Tao Sang
2c551e44cc
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
2020-07-06 13:41:09 -04:00
Matt Arsenault
cfed3f310d
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
2020-07-06 11:07:30 -04:00
Matt Arsenault
3a564bc6cb
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
2020-07-06 10:29:29 -04:00
Matt Arsenault
c56a82fd05
Fix unused function warnings for conditionally used functions
...
Change-Id: Ied23c571b949abef1816914986f19b14aca3d2f3
2020-07-06 10:28:43 -04:00
Matt Arsenault
7124974148
Fix -Wunused-private-field
...
Change-Id: Iedf121025a33bf08eed310e3d85302f8bf3ac7d9
2020-07-06 10:27:43 -04:00
Matt Arsenault
9e3e41ca2e
Remove unused functions
...
Change-Id: I55db791019c511de83d8b895e3a48b3d7475aeac
2020-07-06 10:27:29 -04:00
Matt Arsenault
a430215067
Fix compiler test for clang
...
Change-Id: I06e01d3422ec4aa8d0fb8f5d9a44e2a840531a87
2020-07-06 10:27:11 -04:00
Chauncey Hui
f9f7508578
SWDEV-2 - Change OpenCL version number from 3170 to 3171
2020-07-05 03:00:03 -04:00
German Andryeyev
059832b526
Return always true for P2P validation under ROCr
...
Change-Id: Id32a5a94a642e708d1d042c5247af38501bec153
2020-07-04 11:38:04 -04:00
Chauncey Hui
f07fedd00a
SWDEV-2 - Change OpenCL version number from 3169 to 3170
2020-07-01 03:00:03 -04:00
Payam
07848d7926
update debug print time to be us
...
Change-Id: I6f49304414ffc209f0fa1cb7199557c8423fcfa7
2020-06-29 18:45:24 -04:00
Chauncey Hui
38ae71d10b
SWDEV-2 - Change OpenCL version number from 3168 to 3169
2020-06-27 03:00:05 -04:00
Aryan Salmanpour
34b82eb998
remove unused argument from enableHostcalls/disableHostcalls functions
...
Change-Id: I351a6b4e23cd9f118310c5c79b1afcb4758fde1b
2020-06-26 16:33:30 -04:00
Chauncey Hui
01d8a13065
SWDEV-2 - Change OpenCL version number from 3167 to 3168
2020-06-24 03:00:03 -04:00
Tao Sang
da94cd0de1
Support numa policy set by user
...
Add hostNumaAlloc() to support numa policy set by user
Change-Id: Ib6c3e838aa53e3d9b3db9735c585df46a1c98944
2020-06-23 18:57:03 -04:00
Vlad Sytchenko
20c24cae93
Revert "Added file logging for rocclr & HIP"
...
This reverts commit 5f055d227d .
This change broke the legacy-complib build in p4. It seems that we can't use any flags in debug.cpp.
Change-Id: I17bb83651b85d6f415d9074634b479658fd4c3f9
2020-06-23 16:46:56 -04:00
Jason Tang
6f2dfea285
Remove finding OpenCL library
...
Change-Id: I44faa5c3d40430ae9c9bc5440252812a8e7f717d
2020-06-23 12:42:42 -04:00
Sarbojit Sarkar
5f055d227d
Added file logging for rocclr & HIP
...
Change-Id: Ic0a54f6ee82d010b011739e0059778ed31833518
2020-06-23 04:30:36 -04:00
Chauncey Hui
bafbbe663e
SWDEV-2 - Change OpenCL version number from 3166 to 3167
2020-06-23 03:00:03 -04:00
German Andryeyev
c18892a590
Remove extra barriers
...
Don't flush current batch if the dependent wait is a nop
Change-Id: I8a8722b9011fe042c1a4ce195938290fc75e7c86
2020-06-22 12:41:02 -04:00
Dittakavi Satyanvesh
7a3b8c6dd2
SWDEV-240566 adds error message before abort
...
Change-Id: I4dbd089daa5e6fde5e8722dc2395225dd822561c
2020-06-22 10:12:49 -04:00
Jason Tang
532083f87c
For apu: call commitSvmMemory() from Device::svmAlloc()
...
Change-Id: Ic6e9b2ad4624e7e1c50835d3825254c76e764bf0
2020-06-22 10:09:32 -04:00
Chauncey Hui
836ee7eddb
SWDEV-2 - Change OpenCL version number from 3165 to 3166
2020-06-20 03:00:03 -04:00
Tao Sang
53264a8a4a
Support numa policy set by user
...
Add CL_MEM_FOLLOW_USER_NUMA_POLICY
Change-Id: I90a19dac7641827dff2ceb9ef8ae5f3467ed87a1
2020-06-19 18:16:47 -04:00
Jason Tang
138b2d3ce2
Set the tiled_ flag according to ImageCreateInfo
...
Change-Id: I3e1b2fdd15e32c3c24f4341001b068738c98e388
2020-06-19 12:34:07 -04:00
kjayapra-amd
71c05075ba
SWDEV-229840 - Add Debug prints when the element is already present in MemObjMap_
...
Change-Id: I21129d087e73cc2a9e35f03e6a1a2dc527626f48
2020-06-19 12:33:20 -04:00