Граф коммитов

13402 Коммитов

Автор SHA1 Сообщение Дата
Satyanvesh Dittakavi 89d36cba5f SWDEV-244772 - Fix dtest hipMemcpyWithStreamMultiThread.cpp.
hipSetDevice is not used correctly to allocate on multiple devices in mGPU setup.
Due to which hipMalloc was called on the same device on multiple threads leading to out of memory issues on some devices with lesser memory.

Change-Id: I0e5b1bc028b9ecb11bd40c3a5edf715f8bd721ff


[ROCm/clr commit: 6f5e63ebac]
2020-07-22 00:52:14 -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
Saleel Kudchadker 2bf550d3c1 Print devPtr and size for hip*Symbol* api
Change-Id: I07be6949cca005700ee1d1708d86220c793c9728


[ROCm/clr commit: 603546cd45]
2020-07-21 13:49:10 -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
Rahul Garg 7654a45737 Handle size 0 symbols
Change-Id: Ie282b37cf6bbccae4611dfc17c5c7f31977feea7


[ROCm/clr commit: 19ede4fd23]
2020-07-21 10:09:26 -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
Aryan Salmanpour dfc8958316 Add missing stream null check for some hipStreamCreate APIs
Change-Id: I716d71e4ec59b0bd7922869bfa0ed908c22c289e


[ROCm/clr commit: e27d53043c]
2020-07-20 18:07:03 -04:00
jujiang 362faab3f5 SWDEV-242337-Fix hipHostRegister test failure for MGPU
Change-Id: I748dac0c5a47fa00184f065d9ef716573aa70b12


[ROCm/clr commit: 797d2761d4]
2020-07-20 11:40:49 -04:00
Matt Arsenault 4668c291e2 Fix -Wunused-private-field
Change-Id: Ib60e8dc2625c0c5e10fa109e452af0bc6174e763


[ROCm/clr commit: 51f4aa305b]
2020-07-20 11:23:18 -04:00
Vlad Sytchenko a5869e453d Merge branch 'amd-master-next' into amd-npi-next
Change-Id: Id241c60d6c2ceb4049c3ec15d9fe06baf28bcb3a


[ROCm/clr commit: 6be1b7ce2b]
2020-07-20 09:49:15 -04:00
Sudheer Kumar 6549bf654e [dtest] Compare hipDeviceGetPCIBusId output with lscpi output
SWDEV-238517 for enhancing hip unit tests

Change-Id: I5507dd19fc22e7f8806655eefaa69fbd61c98f56


[ROCm/clr commit: 94c4462848]
2020-07-20 04:31:48 -04:00
German Andryeyev 9b9d4a9c3c Grab the event lock before fetching the last command
Hip applications assume that hipEventRecord called from multiple
threads will contain exactly the last queued command to the stream.

Change-Id: I1da3259f143d7670d0870d9a47c08e32336b2222


[ROCm/clr commit: 5ef00cf6e9]
2020-07-20 02:01:16 -04:00
Tao Sang 03c1acd0f8 Let rocclr decide numa dependence
Change-Id: Idaf8ab1d0563ac39c352219a6dacf95745bdc6b0


[ROCm/clr commit: 56443c2c3d]
2020-07-19 23:29:59 -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
Ashutosh Mishra 65cce73afe Adapting to static libaray changes for hipcc
Since the introduction of BUILD_SHARED_LIBS there is only one target created : libamdhip64
Which is static ( libamdhip64.a ) or Dynamic ( libamdhip64.so ) depending on whichever it is
being compiled for. After this change we do not have any target libamdhip64_static which is
mentioned in the hipcc for linking. Hence cleaning the same.

Change-Id: Ia45c145e17b111b3f6a32299a11962b10f1cc539


[ROCm/clr commit: 7d3d8c8e6d]
2020-07-17 14:42:07 -04:00
Payam 81d7cfcda3 cleanup warnings
Change-Id: I3715fe6aa540c5a40fe2aa324c9fbeab1e67f717


[ROCm/clr commit: 2dc41007d7]
2020-07-17 14:25:52 -04:00
jujiang 0aef2093d9 SWDEV-243933-update HIP README document
Change-Id: Ie303698ae92c7fa1b1202c1ee06beda1005ba065


[ROCm/clr commit: 50b299da66]
2020-07-17 12:26:05 -04:00
Christophe Paquot d8042a02ad Remove use of setLastQueuedCommand
Change-Id: I07bf54dc09905d9a17b059a476df9282eb6f1f51


[ROCm/clr commit: a838e6e108]
2020-07-17 11:45:25 -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
Evgeny 5b974209a0 cleanup: unneeded '\'
Change-Id: I0276312fdb0e4829d678de4281ccfd12eb7f232e


[ROCm/clr commit: 49091c2463]
2020-07-16 01:57:07 -05:00
Ashutosh Mishra beda35b8af Adding "BUILD_SHARED_LIBS" flag to cmake files
JIRA : SWDEV-234471
With this change compilation of the ibamdhip64 to be decied by arguments to build_hip_on_rocclr.sh file
build_hip_on_rocclr.sh -r (current) shall conitnue to create libamdhip64.so;
build_hip_on_rocclr.sh -r a (new) shall create libamdhip64.a
other options remain the same

Changed the targets according to requirement of stage2 dependencies.
Changed find_lib with find_package

Adpated the review comments

Change-Id: I719918f73ab33cd8031a32db6fe9b8adaa1b4b87


[ROCm/clr commit: a77c7e21be]
2020-07-16 00:29:14 -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
Sudheer Kumar 31e62c5852 [dtest] Enhanced tests to cover multiple hipmemset and hipmemsetAsync apis
SWDEV-238517 for enhancing hip unit tests

Change-Id: Iba2c419a4487955f34b4f19abe174ef427d289d8


[ROCm/clr commit: 7d77902198]
2020-07-15 01:13:07 -04:00
sushantkumar14 14e9205334 [dtest] Half2 comparison related tests
Tests heq2, hne2, hle2, hge2, hlt2, hgt2 APIs for functionality
and NaN tests

SWDEV-238517 for enhancing hip unit tests

Change-Id: I88a9a8ead0d00a1261f3d650361d655f2f397e48


[ROCm/clr commit: fe3cd6ca27]
2020-07-14 23:53:55 -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
mshivama 3b311d6c70 Add support for few CUDA compatible reduction operations like __syncthreads_count()
Change-Id: I0917820058f0edad5c0bdd42dea37f06353fc63c


[ROCm/clr commit: 1c5537dde4]
2020-07-14 12:03:14 -04:00
Sarbojit Sarkar a4c135ec8a host pointer check [SWDEV-243104, SWDEV-243206]
Change-Id: Id58dabfe5c35e5f8e42d224e700a431a4a97d003


[ROCm/clr commit: 9ba3732180]
2020-07-14 07:16:12 -04:00
kjayapra-amd 7de79c9a40 SWDEV-240165 - Adding a simple test for IPC memory.
Change-Id: Ib33ac20412cafa779fe20ff4df8a76dc22d50421


[ROCm/clr commit: 6be6cd9ebd]
2020-07-13 10:29:04 -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 5225aff583 Implement HIP_ENABLE_DEFERRED_LOADING in right way
Change-Id: Ia28dbdea5cde93b3ca69f44c6a3c18ec8a730d42


[ROCm/clr commit: 19d6a646bb]
2020-07-11 18:14: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 28b5e13757 SWDEV-240165 - Move all amd::MemObjMap_ reference to ROCclr and only allow base ptr to get ipc handle.
Change-Id: I4f11e56ba455a7ce5a066c0e9e49657c5220a211


[ROCm/clr commit: ff36244b9c]
2020-07-09 21:19:50 -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
Pruthvi Madugundu 67591d6671 Adding support for multiple icd files specific to ROCm version
- amdocl64.icd is renamed to amdocl64_<ROCM_PATCH_VERSION>.icd
- This will enable support for multiple icd for different versions of
  ROCm

Signed-off-by: Pruthvi Madugundu <pruthvi.madugundu@amd.com>
Change-Id: I8031b19f8579507ffb6727dedcd2e3fbb4e45de8


[ROCm/clr commit: b88a313eff]
2020-07-09 18:04:18 -07:00