Matt Arsenault
03ed004255
Use option for BUILD_SHARED_LIBS
...
This avoids blindly overwriting the setting.
Change-Id: I38dff67f406c4547806a96f4ab220a7415d96242
2020-06-30 15:01:46 -04:00
German Andryeyev
11b7842f71
Remove hipMemcpyDeviceToDevice check.
...
There is hipMemcpyDefault that requires validation also.
Change-Id: I5ae0ffa1c023b7774547acbdc049b84a0c2cb4c5
2020-06-30 12:59:54 -04:00
Ronak Chauhan
133251a6e1
Support passing macros to hipLaunchKernelGGL
...
This makes hipLaunchKernelGGL take a variable argument list, that will be
expanded before being fed to hipLaunchKernelGGLInternal.
This is different from fb6bb04f03 .
We try to accomodate the case when a kernel template has multiple
type parameters.
Change-Id: I87577d402c92b0f3b51e298f8293f4065e1f6de8
2020-06-30 10:44:55 -04:00
Jason Tang
0394f79d4d
Fix CentOS build
...
Change-Id: Id0956f2a876077a3528c4fafc136586b95fdda70
2020-06-29 18:49:48 -04:00
Payam
07848d7926
update debug print time to be us
...
Change-Id: I6f49304414ffc209f0fa1cb7199557c8423fcfa7
2020-06-29 18:45:24 -04:00
Daniil Fukalov
359ea4fcaf
Add __attribute__((const)) to grid related functions declarations
...
This is cherrypick of Daniil Fukalov's PR https://github.com/ROCm-Developer-Tools/HIP/pull/2110
which has been committed to master branch.
Make declarations consistent with https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/ockl/src/workitem.cl
Without the attribute these functions don't have "readnone" LLVM IR attribute. Without it some optimizations fails, e.g. Loop Invariant Code Motion doesn't hoist these calls out of a loop.
Change-Id: Idb599570d142152cc4f6a3c8986384ad7f0c4729
2020-06-29 13:33:18 -04:00
Jason Tang
4666113db0
Not to use fixnames
...
Change-Id: I50c9503cad1fc072edec989a4f82a27bb7bb3909
2020-06-28 18:57:16 -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
Vlad Sytchenko
e356f5ff85
Disable failing texture tests
...
Change-Id: I2fd8ae2ac8c7494911149023c2102025443b7fbd
2020-06-26 14:05:24 -04:00
Evgeny
80f9bfc168
HIP-PROF: fixing pointers tracing
...
Change-Id: Id2c35972e1d134012980c95a3649ddfdf9303494
(cherry picked from commit a19960e79a )
2020-06-26 11:17:29 -04:00
Cole Nelson
0b7703560a
packaging/hip-rocclr.txt: multi-version install broken because of 'hip_rocclr'
...
Versioning understands 'hip-rocclr' not the deprecated 'hip_rocclr'.
Remove this.
Leaving Provides hip-hcc until package shifts settle down.
SWDEV-242143:
Change-Id: I489fa28dd1394625bc6016a3adda4f73d02da202
Signed-off-by: Cole Nelson <cole.nelson@amd.com >
2020-06-25 14:17:16 -04:00
rohit pathania
c14e95741b
[dtest] hipMemcpyWithStream API multithreaded test scenarios
...
1.hipMemcpyWithStream with one stream
2.hipMemcpyWithStream with two streams
3.hipMemcpyWithStream multiGPU with one stream
4.hipMemcpyWithStream with kind DtoH
5.hipMemcpyWithStream with HtoH
6.hipMemcpyWithStream with DtoD
7.hipMemcpyWithStream with Default kind
8.hipMemcpyWithStream with Default kind on same device
9.hipMemcpyWithStream with DtoD on same device
SWDEV-238517 for enhancing hip unit tests
Change-Id: I5f55a12bdd7c8d28fcb06db94a491c2ad5ee3004
2020-06-25 12:51:23 -04:00
Ronak Nilesh Chauhan
b15e835d9e
Revert "Support passing macros to hipLaunchKernelGGL"
...
This reverts commit fb6bb04f03 .
Reason for revert: This patch breaks ROCPrim tests
Change-Id: Ib2235f719861c9f4317c33e86b6c1f8bc669cfd4
2020-06-24 04:28:46 -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
Evgeny
c148adf362
HIP-PROF: fixing pointers tracing
...
Change-Id: Id2c35972e1d134012980c95a3649ddfdf9303494
2020-06-23 14:02:35 -04:00
kjayapra-amd
a5c437c82e
SWDEV-209747 - Staging Copy will not be supported in HIP, adjust test case accordingly.
...
Change-Id: Iad616ef3990d539cdb82bbd8a22ea2124f7abe50
2020-06-23 13:14:17 -04:00
Jason Tang
6f2dfea285
Remove finding OpenCL library
...
Change-Id: I44faa5c3d40430ae9c9bc5440252812a8e7f717d
2020-06-23 12:42:42 -04:00
Tao Sang
9171896d73
Fix missing numa symbol in building libamdocl64.so
...
Change-Id: I77eca06345b11b5c8482ab626ef1b60c5fa20ec8
2020-06-23 11:29:28 -04:00
agodavar
6a47458764
SWDEV-239297:hipMemset fix, getMemoryObject with unaligned ptr
...
Change-Id: I37b8139c5099d37b42f34d728a3d694fdf9cb55d
2020-06-23 08:56:09 -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
265d84bab9
Disable flush on marker
...
Change-Id: I04d0fd995fb4b29a6bc372e1543902a053017d6a
2020-06-22 13:27:39 -04:00
Tao Sang
d536a661ac
Fix static lib crashing issue
...
Initialize HIP_ENABLE_DEFERRED_LOADING = 1
Change-Id: I432ccf1926b953c4391fdd086cde7da2380962bb
2020-06-22 13:24:40 -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
Michael LIAO
41aedf5273
[hip] Disable assert workaround for HCC on HIP-Clang.
...
- HIP-Clang follows the standard assert definition by providing
`__assert_fail`. But, `assert` macro is added as an HCC-specific
workaround due to the missing implementation. Only enable that on the
HCC compilation to avoid unexpected behaviors on HIP-Clang
compilation.
Change-Id: I1c9a707baff9b85c30faef58c52ebfe07e3fc3fc
2020-06-22 10:33:56 -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
Ronak Chauhan
fb6bb04f03
Support passing macros to hipLaunchKernelGGL
...
This makes hipLaunchKernelGGL take a variable argument list, that will be
expanded before being fed to hipLaunchKernelGGLInternal.
Change-Id: Id76e2bf91acd5d68f56a24fc39f219f2eeb06d33
2020-06-22 04:35:29 -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
71c64e98a0
Support numa policy set by user
...
Add hipHostMallocNumaUser flag to hipHostMalloc() in order to support
numa policy set by user.
Change-Id: I6d70ed539a5f97f27187f2242b68849c0e27e4d6
2020-06-19 21:23:58 -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
German Andryeyev
01fcf82448
Switch PAL to interface 610
...
Change-Id: Ida563f38513789f5ba105ac92a9737c59cd5d90d
2020-06-19 11:40:12 -04:00
Vlad Sytchenko
81b15ed36e
Correct texture element size calculations
...
hipChannelFormatDesc contains size of each channel in bits. There's 8 bits per byte, not 4, so we should divide by 8.
Change-Id: I38ae2d28ad54740823c98908ca2afecad0ba0183
2020-06-19 11:39:03 -04:00
Jason Tang
155ff5bdcc
Merge pal Resource mapLayers/unmapLayers logic into map/unmap
...
Change-Id: I0198fb96f104539fb557f91160665e60ba576132
2020-06-19 10:51:48 -04:00
Yaxun (Sam) Liu
2461135d8a
Fix missing ldexp(float,int)
...
Change-Id: I2c1553407dfc26948d3ab7aa532eef42a0f6b204
2020-06-18 15:16:59 -04:00
Aryan Salmanpour
1bd265f8d6
move hostcall-based implementation of messages/printf from rocm backend to the common device layer
...
SWDEV-232428
Change-Id: I14b774e66a1783569c6d34d8759c1faa5f340e27
2020-06-18 13:49:28 -04:00
rohit pathania
226c438559
[ dtest ] Added different test scenario with hipMemcpyWithStream
...
- Test with one, two streams
- Test Multi-gpu (one stream per gpu)
- Test D-D (on same device/different devices). Can discover issues
when devices are on same or different root complexes.
- Test H-D/Default
SWDEV-238517 for enhancing hip unit tests
Change-Id: I8031a7eebe2f9c8c0e0996e2c7accb09ac0b96d4
2020-06-18 10:31:01 -04:00
Chauncey Hui
c9c4250bbe
SWDEV-2 - Change OpenCL version number from 3164 to 3165
2020-06-18 03:00:03 -04:00
Saleel Kudchadker
d8efc31c34
Reset GPU_FORCE_BLIT_COPY_SIZE as its fixed in KFD
...
Commit ebcfa85cf7ebb26c96fca48a34292d88e74dd675
fixes programming of SDMA*_ULV_CNTL.HYSTERIS register
Change-Id: Ibb1d824bf3f8e351f840adbc099601b322f935f6
2020-06-17 13:23:41 -07:00
Vlad Sytchenko
ba2d3fbbb3
Support creating textures from user ptr with offset
...
Change-Id: Ied0af9a842fc6ef067e068a9d89dde63ff5dfce1
2020-06-17 14:10:14 -04:00
Vlad Sytchenko
8db45328d9
Fix -Wsign-compare warnings
...
Change-Id: I874dc007ac657c25a72c6752c1a2da74c028a822
2020-06-17 11:20:45 -04:00
Chauncey Hui
7475e17537
SWDEV-2 - Change OpenCL version number from 3163 to 3164
2020-06-17 03:00:03 -04:00
Jason Tang
8933c078f6
Add asicRevision
...
Change-Id: I59f3ad20b9bdadf77bd1e0725f7a401d7ad423a3
2020-06-16 17:54:20 -04:00
Jenkins
5068e1d87a
Merge 'amd-master-next' into 'amd-npi-next'
...
Change-Id: Id0bd0798c460b51653a73b6a9ce97ddaec92874a
2020-06-16 21:09:56 +00:00
German Andryeyev
01c2727a3a
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
2020-06-16 11:21:54 -04:00