jujiang
06c6951205
To fix a format in hip_porting_guide.md
...
Change-Id: I5faa4ec9b3d17625b7cb5cea86b9f44766b1cfa9
2020-06-09 13:14:52 -04:00
Rahul Garg
6aab5fa993
Bump version to 3.6
...
Change-Id: I739a7bd03a4ed102bbc7c2f60d108e20132f5423
2020-06-09 11:22:20 -04:00
Chauncey Hui
b17acc9374
SWDEV-2 - Change OpenCL version number from 3157 to 3158
2020-06-09 03:00:02 -04:00
Aryan Salmanpour
1d938697a1
fix a build error on TeamCity due to order of initialization in rocm Device class
...
Change-Id: I2e45e71e53272b7a7813422d3b949e3835077ab0
2020-06-08 13:56:39 -04:00
kjayapra-amd
f1555d5fe0
FEAT-30999 - Add gfx90a support in npi.
...
Change-Id: Iabd36196e25be441bb816d5bab7a829911507169
2020-06-08 13:49:03 -04:00
Chauncey Hui
c9ddebbb85
SWDEV-2 - Change OpenCL version number from 3156 to 3157
2020-06-06 03:00:03 -04:00
Saleel Kudchadker
fbba37070c
Modify HIP_RETURN to print useful details
...
Change-Id: I23892c2d9a738b0298cdf24106d688a792937c73
2020-06-06 02:05:21 -04:00
kjayapra-amd
ee2ff4bc5e
SWDEV-239327 - Remove amd_mem_obj during unregistervar
...
Change-Id: I2130eaa21369b9634a9459680061138c61eaaaa4
2020-06-05 23:24:38 -04:00
kjayapra-amd
1b0882e061
SWDEV-239327 - Dont call hsa_amd_memory_pool_free from ~amd::Memory() for obj created by passing devptr.
...
Change-Id: I315fd502df6bb1bf66dd24eac9325f1439e432ad
2020-06-05 18:42:03 -04:00
kjayapra-amd
1dc24194a3
SWDEV-235295 - Move addDeviceProgram() to lazy loading
...
Change-Id: I8fe07e370e58844496e18c858bb528393556854f
2020-06-05 18:03:32 -04:00
Jason Tang
14c699e9de
SWDEV-227909 - Add gcnArchName
...
Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
2020-06-05 15:33:55 -04:00
German Andryeyev
3828a61413
Make sure runtime sync before CPU access
...
Change-Id: I52882788ded187b3f735257a188b1b08d8502147
2020-06-05 12:00:08 -04:00
German Andryeyev
86e0f337fc
Add the sync of the current queue
...
Make sure runtime waits for the current queue before
synching with device queue
Change-Id: I753b6fc0bb15a3a3d4bf03fef1152842550850c0
2020-06-05 11:57:59 -04:00
Matt Arsenault
dd5f255c7e
Don't add -std flag to CMAKE_CXX_FLAGS
...
Use the cmake method, and consolidate setting the language standard in
one place.
Change-Id: I96826c31955b1553ed1beb94203c99933075bb0a
2020-06-05 11:22:23 -04:00
kjayapra-amd
9261a35be9
SWDEV-234295 - Pass flag to ROCclr to not clear device programs during program::build()
...
Change-Id: I50b9fa1a96da6895f73fdf4a7c0d3f096b1188da
2020-06-05 09:53:11 -04:00
rohit pathania
0920bac577
[ dtest ] hipModuleLaunchKernel multiThreaded n multiGPU scenarios
...
1.Added hipModuleLaunchKernel multithreaded multi GPU scenario.
2.removed hipCtxCreate API from earlier test as it is deprecated.
SWDEV-238517 for enhancing hip unit tests
Change-Id: Id102d80887b6ff61a59938dbeb9fa2a26a3275b2
2020-06-05 09:40:58 -04:00
Lakhan Singh Thakur
6f87616103
[dtest] merge 'Adding the two test cases to cover scenarios observed in SWDEV-181598.'
...
SWDEV-238517 for enhancing hip unit tests
Change-Id: Ie61145b46c89b2e970af0ab11e22b6f6286ec90f
2020-06-05 09:10:23 -04:00
Chauncey Hui
56af79fa39
SWDEV-2 - Change OpenCL version number from 3155 to 3156
2020-06-05 03:00:03 -04:00
Aryan Salmanpour
83b8e1fbac
Add support for setting hip stream priority
...
this change follows CUDA convention where lower number is greater priority
Change-Id: I72596a36449e818cbd8c175bf8519c51f46b1610
2020-06-04 22:50:30 -04:00
kjayapra-amd
1982c16e46
FEAT-30761 - Adding defaults to all Switch cases in PalDevice gfx detection.
...
Change-Id: Ic998dba44d3287484d6b0da4f07f320de8e6d92b
2020-06-04 20:49:58 -04:00
Aryan Salmanpour
b5552aa97f
Add support for setting queue priority for ROCm backend
...
Change-Id: I67ed5a6868af79538f7f4522d8d11c043cdf3c1e
2020-06-04 20:16:32 -04:00
German Andryeyev
44bc0cb35d
Revert "Avoid lock for last queued command"
...
This reverts commit dc4e09a63a .
Reason for revert: <INSERT REASONING HERE>
Change-Id: Ie10442c9447f010bb90c679b6cffca5b48b8d054
2020-06-04 18:08:17 -04:00
Saleel Kudchadker
d8ca3c632c
Set hidden mem witholding to 0 by default
...
TF doesn't reserve all available memory now. If any
client wants to reserve they can explicitly set
HIP_HIDDEN_FREE_MEM env var
Change-Id: Ied3a948b79f49aa7327f6a820e9789e39cec143b
2020-06-04 14:37:40 -04:00
Payam
f3ee29cdb2
Observed softhang while running hipStreamAddCallbackCatch SWDEV-236746
...
Workaround hipStream deadlock issue as the same lock was used twice SWDEV-236746
Change-Id: Icc60104ce6edf4cfd2a3a889bab78a6caadd50b7
2020-06-04 14:11:22 -04:00
Saleel Kudchadker
2b6fea4348
Fix a potential mem leak
...
If a offset of the pointer is passed to free it may release
the mem object but may not release from MemObjMap. Erase the map
by getting the parent pointer.
Change-Id: I06b92548de2d49b4029efe6b511329225007cc55
2020-06-04 14:05:11 -04:00
Aaron En Ye Shi
29c7c9b1c2
Add gfx908 to hip-config.cmake
...
Support gfx908 as part of the default AMDGPU_TARGETS. MIGraphX requires this change.
Change-Id: I692f87f27829778e04f59c9ca655c6e8cbc00abc
2020-06-04 11:00:09 -04:00
Chauncey Hui
f9fd4bb186
SWDEV-2 - Change OpenCL version number from 3154 to 3155
2020-06-04 03:00:03 -04:00
Siu Chi Chan
4b56aaefd6
add constexpr constructor for vector types
...
Change-Id: I45bb0537d6a24ee50b548c2fd8b4f20518764813
2020-06-04 01:57:03 -04:00
Evgeny
0c0a8fc108
adding hipGetStreamDeviceId() profiling API
...
Change-Id: I5ccf88ddac123260d7c17defefcf20ff3b2504e2
2020-06-03 18:57:49 -04:00
Vlad Sytchenko
3a84fcd13e
Handle the option USE_COMGR_LIBRARY correctly
...
This is a follow up to http://gerrit-git.amd.com/c/compute/ec/vdi/+/359563 . The setting is now either ON or OFF, never "yes".
Change-Id: I031d013a8d239dc72ef610da81bd31b8b78a3ba8
2020-06-03 17:25:47 -04:00
Tao Sang
fabfc42b68
Fix TC linux build issue due to previous Numa patch
...
Change-Id: I6068edaf38cac6fad187c8429707afdb727e8d41
2020-06-03 16:42:53 -04:00
Aaron En Ye Shi
d93134e727
Add compiler-rt library for __fp16 and _Float16
...
Similar to HCC, link with compiler-rt to support __fp16 and _Float16 type conversions in ONNX models. This should resolve SWDEV-238491.
Change-Id: Iad8dcff568831719f501f562a04023326ae8036c
2020-06-03 18:53:14 +00:00
Siu Chi Chan
c414c70e8f
update device library path
...
fix device lib directory
add missing --hip-link switch for link phase
Change-Id: I4b2eeb32648ca3cec72ec1f4e3381ce1fc0a90a5
2020-06-03 14:44:23 -04:00
Vlad Sytchenko
ce2c28c745
Disable oclruntime OCLPerfCounters test
...
For some reason the test is causing latest rocr to crash. Disabling for now to investigate.
Change-Id: I78996241e6756c36af4b7f5fcb34e915bf33573e
2020-06-03 13:57:40 -04:00
Vlad Sytchenko
8790099ba9
Add cmake targets to run ocltst test modules
...
Tests are now excluded from the main build, however ocltst can still be built by running `cmake --build . --target ocltst`.
Test modules can be run by invoking the test_${module_name} target, for example `cmake --build . --target test_oclruntime`.
Change-Id: I6f40d3bd318e821e4fbf35ccfa395dc7036673cb
2020-06-03 13:55:28 -04:00
kjayapra-amd
426d1d2c28
FEAT-30761 - Adding gfx1031 to known targets in hipcc on amd-npi-next branch
...
Change-Id: I0f7fb414d53bd83087681ddb4e6a86802ba3c3ba
2020-06-03 12:54:51 -04:00
kjayapra-amd
e9bd41bf1a
SWDEV-234295 - Dont clear device programs during amd::program::build()
...
Change-Id: I87bc7e2c830edee783ee490bbb087492467f2704
2020-06-03 12:18:25 -04:00
jujiang
5f951fb21c
Merge updated HIP documents from amd-master-next to npi-next
...
Change-Id: Id511f398590a20ddc1ae03818099cdc55c507fdc
2020-06-03 11:41:11 -04:00
Chauncey Hui
298dd2ff3f
SWDEV-2 - Change OpenCL version number from 3153 to 3154
2020-06-03 03:00:03 -04:00
Jatin
126573df4c
Adding changes for hipExtLaunchKernel for rocCLR
...
Change-Id: Iba52bc3bde7c37f3fb375a55ba0947e87b3cdc9b
2020-06-02 14:16:41 -04:00
Vlad Sytchenko
876cf62e0e
Only build oclgl tests if OpenGL is installed on the system
...
Change-Id: I226f2e09c98a970ce8dce0b6f670ca13d868aeb6
2020-06-02 13:31:29 -04:00
Jason Tang
1171ec72be
Use ROCMSetupVersion only when ROCM is found
...
Change-Id: I2d76762aaa6c89b2ba956dcb62b3f79f6208a365
2020-06-02 10:40:25 -04:00
Matt Arsenault
0c539737cf
Use standard cmake option for USE_COMGR_LIBRARY
...
Change-Id: Id94d88a33772d9c9ab28f9a82c6f761d9c867476
2020-06-02 10:32:45 -04:00
Jenkins
3bf16f4093
Merge 'amd-master-next' into 'amd-npi-next'
...
Change-Id: I6f11cdf974f5e77b9f5210ac4da1eca08a655ab7
2020-06-02 09:22:34 +00:00
Chauncey Hui
3eda2acdf8
SWDEV-2 - Change OpenCL version number from 3152 to 3153
2020-06-02 03:00:03 -04:00
Rahul Garg
db471e5ed9
Use right perl-which rpm package
...
Change-Id: I22106a7d1b4b50c99f945bc6416ff3bd8486d15c
2020-06-02 02:17:54 -04:00
Tao Sang
aedb9590be
Support Numa-aware cpu selection
...
Select cpu in terms of the smallest Numa distance for a GPU device.
This will improve performance of hipMemcpy in the mode of
hipMemcpyHostToDevice or hipMemcpyDeviceToHost for small buffer.
`
Change-Id: I2860f1f83b79be0dff7bf5e64cf68ab4448db0a1
2020-06-01 21:01:24 -04:00
Alex Xie
9a8bd9e68b
ROCMOPS-924 centos-6.10 support for opencl_on_rocclr build
...
Fix a build error in centos 6.10. When linking, ld cannot find function
clock_getres. This function is from librt (for glibc version before 2.17).
Change-Id: I698f768d0618a054d5d0fc73b9f1916a7ce542fb
2020-06-01 17:47:03 -04:00
Jason Tang
4dcfe78e56
SWDEV-204566 - Use ROCMSetupVersion to set package version
...
Change-Id: I29b9f748291b3802de65c9f29f791050853c2d12
2020-06-01 16:39:35 -04:00
Aaron En Ye Shi
a436ab865a
HIP-Clang Temporarily include HIP_HCC_FLAGS for PyT
...
Change-Id: I0f5895fba69f5bf0c6cc13e9402bdc44726dcc5a
2020-06-01 15:28:04 -04:00