Saleel Kudchadker
f00b041e6c
Reset GPU_FORCE_BLIT_COPY_SIZE as its fixed in KFD
...
Commit ebcfa85cf7ebb26c96fca48a34292d88e74dd675
fixes programming of SDMA*_ULV_CNTL.HYSTERIS register
Change-Id: Ibb1d824bf3f8e351f840adbc099601b322f935f6
[ROCm/clr commit: d8efc31c34 ]
2020-06-17 13:23:41 -07:00
Vlad Sytchenko
0a3e99aa14
Support creating textures from user ptr with offset
...
Change-Id: Ied0af9a842fc6ef067e068a9d89dde63ff5dfce1
[ROCm/clr commit: ba2d3fbbb3 ]
2020-06-17 14:10:14 -04:00
Vlad Sytchenko
7a902e0788
Fix -Wsign-compare warnings
...
Change-Id: I874dc007ac657c25a72c6752c1a2da74c028a822
[ROCm/clr commit: 8db45328d9 ]
2020-06-17 11:20:45 -04:00
Chauncey Hui
33ea76ec1c
SWDEV-2 - Change OpenCL version number from 3163 to 3164
...
[ROCm/clr commit: 7475e17537 ]
2020-06-17 03:00:03 -04:00
Jason Tang
ab081f39cc
Add asicRevision
...
Change-Id: I59f3ad20b9bdadf77bd1e0725f7a401d7ad423a3
[ROCm/clr commit: 8933c078f6 ]
2020-06-16 17:54:20 -04:00
Jenkins
52c76fcd97
Merge 'amd-master-next' into 'amd-npi-next'
...
Change-Id: Id0bd0798c460b51653a73b6a9ce97ddaec92874a
[ROCm/clr commit: 5068e1d87a ]
2020-06-16 21:09:56 +00:00
German Andryeyev
51db339313
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
[ROCm/clr commit: 01c2727a3a ]
2020-06-16 11:21:54 -04:00
Vlad Sytchenko
baaf3e9d1f
Fix typo from previous change
...
Change-Id: Ib8f3418a3460d86d75fc5529ed6270a164e9b10e
[ROCm/clr commit: b835120dfa ]
2020-06-16 11:12:33 -04:00
Chauncey Hui
c6696b3ccb
SWDEV-2 - Change OpenCL version number from 3162 to 3163
...
[ROCm/clr commit: e9cee93786 ]
2020-06-16 03:00:03 -04:00
Tao Sang
315cd2f959
Make hipHostMalloc() respect hipSetDevice()
...
Change-Id: I2410240f91b108c24597ee0fa7cf31e7b1f3ac5d
[ROCm/clr commit: 63ce69224a ]
2020-06-15 23:20:09 -04:00
kjayapra-amd
b079478641
SWDEV-240589 - Remove guarantee @ __hipRegisterFunction flow for now.
...
Change-Id: Ic51e2a1f951ac7745c2bbd11cfd2b92521c6966a
[ROCm/clr commit: 2467e37f3f ]
2020-06-15 22:32:24 -04:00
Vlad Sytchenko
e5f959ce02
Enable the use of some warnings when building HIP-ROCclr
...
Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385 , except no -Wno-strict-aliasing.
With this change only two warnings show up during the build - -Wsign-compare and -Wmisleading-indentation.
Change-Id: Iffa436c65ab6312aeaa6def71ee6af38ed1b4a4e
[ROCm/clr commit: 509a38f50c ]
2020-06-15 20:33:30 -04:00
German Andryeyev
17bf7b0138
Initial support for HIP managed memory
...
- Call the new ROCclr interfaces for HMM
Change-Id: I2cd1bf438f712a9e9e328340e7d0c025257ca6c1
[ROCm/clr commit: b182ad9574 ]
2020-06-15 18:10:41 -04:00
Vlad Sytchenko
0b3fc7bc5d
Fix some -Wunused-but-set-variable warnings
...
Change-Id: I281583b5abdfc09d5dd8b7dfb20b8821581db193
[ROCm/clr commit: 5b9af8f28d ]
2020-06-15 17:51:01 -04:00
Vlad Sytchenko
23b193fcd8
Fix -Wsequence-point warning
...
Change-Id: Ib6322e06f83887da4a29f8eafb99b743211e851d
[ROCm/clr commit: e50a9eec9d ]
2020-06-15 17:40:11 -04:00
Vlad Sytchenko
f88ff3ebc1
Enable the use of some warnings when building ROCclr
...
Enabling anything beyond -Wall like -Wextra or -pedantic seems impossible as our code base explodes in thousands of warnings.
-Wno-unused-{variable/function} is not present in the p4 build, but with gcc7.4.0 we get hundreds of instances of this warning being triggered in the code base.
With this change only two warnings show up during the build - -Wsequence-point and -Wunused-but-set-variable. The fix for the first is alredy in review.
Change-Id: I2ff37981377487b0e07fd9490498e38a60792c0c
[ROCm/clr commit: 947dbe82fb ]
2020-06-15 17:32:45 -04:00
Vlad Sytchenko
434a1719a3
Enable the use of some warnings when building OCL-ROCclr
...
Similar to http://gerrit-git.amd.com/c/compute/ec/vdi/+/375385 , except no -Wno-strict-aliasing.
With this change only one warning shows up during the build - -Wdeprecated-declarations in cltrace.
Change-Id: Ie335eb9c45287ee1006e6bd65d54d67b41f79604
[ROCm/clr commit: ac3848a8e6 ]
2020-06-15 15:28:33 -04:00
Aryan Salmanpour
c60c625688
expose five missing memcpy hip APIs
...
exposing the following hip APIs which have been previously implemented:
hipMemcpy2DFromArray
hipMemcpy2DFromArrayAsync
hipMemcpyAtoH
hipMemcpyHtoA
hipMemcpyParam2DAsync
Change-Id: I3f8635bd4265d2bf5aa2084f4eabb51f74fb18ba
[ROCm/clr commit: 02c62165b8 ]
2020-06-15 12:30:31 -04:00
German Andryeyev
cfe7062be1
Fix compile error in ATI make build
...
Change-Id: Id9d23b8f46bf1b97c0f02c8ae0edd94e6963b1b5
[ROCm/clr commit: afe825c506 ]
2020-06-15 10:31:57 -04:00
Chauncey Hui
ceed43fa4e
SWDEV-2 - Change OpenCL version number from 3161 to 3162
...
[ROCm/clr commit: 57eb9064ce ]
2020-06-14 03:00:10 -04:00
Tao Sang
e3c1bb153b
Deduce hops from numa distance
...
Rocr won't return real hops so that we have to deduce hops from
numa distance as a workaround. This will be subject to change
as driver team will provide a long term solution in rocm3.7
Change-Id: Ifb939ed848db190c3d544bb7f30a5821161921e6
[ROCm/clr commit: b14d9e0a36 ]
2020-06-13 17:04:17 -04:00
Chauncey Hui
b98c110a87
SWDEV-2 - Change OpenCL version number from 3160 to 3161
...
[ROCm/clr commit: 7ea8407f82 ]
2020-06-13 03:00:03 -04:00
Tao Sang
7ab0bcb3b6
Make hipHostMalloc() respect hipSetDevice()
...
Change-Id: Ibdb666fe8dd049735df2288878501a66f7eedc28
[ROCm/clr commit: db10d42e50 ]
2020-06-12 18:32:10 -04:00
German Andryeyev
7c1591d98c
Add missing return
...
Change-Id: Ibe9c1ccb377ce14ad69a0e9828ea70b707acba34
[ROCm/clr commit: e4177b75bc ]
2020-06-12 17:35:45 -04:00
Jason Tang
e762c29a30
Get gpu asicRevision_
...
Change-Id: I8afb53e027d912843655823eebaec29901c33d28
[ROCm/clr commit: 30e36a4925 ]
2020-06-12 14:51:52 -04:00
German Andryeyev
0a6056ac82
Initial HMM support
...
- Expose ROCclr interfaces for HIP usage
- ROCr interfaces aren't available in staging, thus control the
build with AMD_HMM_SUPPORT define
Change-Id: Iadc2bcc230e78d3b0dc22b235189c8cc80843446
[ROCm/clr commit: c5afd5d412 ]
2020-06-12 09:06:07 -04:00
Chauncey Hui
2e49374d58
SWDEV-2 - Change OpenCL version number from 3159 to 3160
...
[ROCm/clr commit: da1f5bfb94 ]
2020-06-12 03:00:03 -04:00
kjayapra-amd
1ed6d978a8
SWDEV-236178 - Store texture reference metadata for dynamically loaded modules.
...
Change-Id: I99ecc80da7e29c691341a01a09e4532972f1e3e5
[ROCm/clr commit: 0b788c4c67 ]
2020-06-11 22:34:50 -04:00
kjayapra-amd
fb0c0122af
SWDEV-236178 - Remove __hip_pinned_shadow reference from dtests and add hipModuleUnload for all corresponding hipModuleLoad calls.
...
Change-Id: I405789b430ffbb8fccda1cebdb5d18e83a85c926
[ROCm/clr commit: 3fab381493 ]
2020-06-11 22:34:36 -04:00
Rahul Garg
c2eb3cd2f7
Addback __mbcnt_lo and __mbcnt_hi
...
Change-Id: Ic3facba2e2245461515799f6a17842da0f5d9933
[ROCm/clr commit: 2d4b865d63 ]
2020-06-11 21:21:36 -04:00
Vlad Sytchenko
b9efee6df8
Revert "Let hipcc not pass -mllvm option to HIP-Clang on Windows"
...
This reverts commit 23a8dfc8f3 .
Change-Id: If29906b9c63f03d6e51144f510d3a956d90935e8
[ROCm/clr commit: e82e9355f2 ]
2020-06-11 16:36:48 -04:00
Rahul Garg
d9aa6e2375
Fix IPC create memory failure
...
ROCr expects granular size in hsa_amd_ipc_memory_create
Change-Id: I7c266aa2eef8304f105298a7a668f4c4b3fb5f5a
[ROCm/clr commit: 617538074c ]
2020-06-11 13:02:54 -04:00
kjayapra-amd
d6ccf1209c
SWDEV-236178 - Reorganizing Platform/Modules code for easy access.
...
Change-Id: Ie8920260ffc4ff01e44b48af8cec9ea5aed1aa9b
[ROCm/clr commit: 840347f0d0 ]
2020-06-11 10:11:20 -04:00
Saleel Kudchadker
fca301772c
Add logging support for AQL packet
...
Use AMD_LOG_LEVEL=4 and AMD_LOG_MASK=8 to print AQL log
explicitly
Change-Id: I4209d91b460e64be44261d3ab773580067e47c29
[ROCm/clr commit: 2b771d2f5f ]
2020-06-10 14:04:47 -07:00
Siu Chi Chan
3d7612af8d
fix uninitialized value in hipcc
...
Change-Id: I90b070c491f0efc328fcf97de0e111658ec772de
[ROCm/clr commit: 32f3374af9 ]
2020-06-10 16:07:51 -04:00
Jason Tang
83153d4a2d
Enable OCLReadWriteImage test on Linux
...
Change-Id: I613e5ff6dd0234515409b8d3f7277f5bbdd1bd20
[ROCm/clr commit: 17dafe33de ]
2020-06-10 15:30:23 -04:00
jujiang
83c3939c6c
Fix for SWDEV-239415 to handle hipGetDevice properly while no GPU present
...
Change-Id: I252cbbf9a89fc76fe1be1fbb8f45778e96c70fb2
[ROCm/clr commit: bb32492438 ]
2020-06-10 14:18:56 -04:00
kjayapra-amd
5593475c37
SWDEV-231701 - Remove amd::memory->svm_ptr from MemObj, instead of the ptr to the object.
...
Change-Id: I5aab450a2320cfa5417c284e2a8454102df6f99d
[ROCm/clr commit: 9ff22151d2 ]
2020-06-10 11:49:02 -04:00
Dittakavi Satyanvesh
a0fbc8fd08
SWDEV-236670 Address Eigen unit test failure by adding __host__ attribute to half2 functions
...
Change-Id: Ifdc852c30a1b3704871e0ee58cb7a55d3d37fc6e
[ROCm/clr commit: bb785840b9 ]
2020-06-10 03:01:42 -04:00
Chauncey Hui
cdd067bca6
SWDEV-2 - Change OpenCL version number from 3158 to 3159
...
[ROCm/clr commit: 4cd1579d46 ]
2020-06-10 03:00:02 -04:00
Christophe Paquot
4206cfddc5
Do not deferred stream creation now that we multiplex HW queues
...
SWDEV-239856
Change-Id: I156650faf832f86891f00ee167269509edd844ec
[ROCm/clr commit: 20ae4d709f ]
2020-06-09 19:16:25 -04:00
Aryan Salmanpour
a760a90d35
reuse available queue with the same priority if queue creation fails
...
Change-Id: I1522935ce1a73c4724135668d039e88a9097710b
[ROCm/clr commit: 5203c5271b ]
2020-06-09 17:56:18 -04:00
Yaxun (Sam) Liu
0d8425ee5a
Fix include path and wrapper header
...
Currently std::complex and some other std functions require uses to
include hip_runtime.h before any other headers to work, which is not
reliable.
changes are made in clang to fix this issue:
https://reviews.llvm.org/D81176
which requires hipcc and HIP headers to make corresponding changes.
This patch will make sure the clang change will not break
HIP/ROCclr during this transition.
After the transition is done, we can remove explicitly setting
include path for HIP-Clang and HIP header in hipcc and hip config
cmake files and rely on clang driver to set it automatically.
Change-Id: I5d226861c2560ffa6c5ab17343a43cc378048061
[ROCm/clr commit: 0a513d8a02 ]
2020-06-09 17:37:20 -04:00
jujiang
b815322dd6
To fix a format in hip_porting_guide.md
...
Change-Id: I5faa4ec9b3d17625b7cb5cea86b9f44766b1cfa9
[ROCm/clr commit: 06c6951205 ]
2020-06-09 13:14:52 -04:00
Rahul Garg
8e4c48bd25
Bump version to 3.6
...
Change-Id: I739a7bd03a4ed102bbc7c2f60d108e20132f5423
[ROCm/clr commit: 6aab5fa993 ]
2020-06-09 11:22:20 -04:00
Chauncey Hui
c8e3363da4
SWDEV-2 - Change OpenCL version number from 3157 to 3158
...
[ROCm/clr commit: b17acc9374 ]
2020-06-09 03:00:02 -04:00
Aryan Salmanpour
6059c30804
fix a build error on TeamCity due to order of initialization in rocm Device class
...
Change-Id: I2e45e71e53272b7a7813422d3b949e3835077ab0
[ROCm/clr commit: 1d938697a1 ]
2020-06-08 13:56:39 -04:00
kjayapra-amd
c73aabb05c
FEAT-30999 - Add gfx90a support in npi.
...
Change-Id: Iabd36196e25be441bb816d5bab7a829911507169
[ROCm/clr commit: f1555d5fe0 ]
2020-06-08 13:49:03 -04:00
Chauncey Hui
ef75e5d449
SWDEV-2 - Change OpenCL version number from 3156 to 3157
...
[ROCm/clr commit: c9ddebbb85 ]
2020-06-06 03:00:03 -04:00
Saleel Kudchadker
3f07846c7e
Modify HIP_RETURN to print useful details
...
Change-Id: I23892c2d9a738b0298cdf24106d688a792937c73
[ROCm/clr commit: fbba37070c ]
2020-06-06 02:05:21 -04:00