Tao Sang
db10d42e50
Make hipHostMalloc() respect hipSetDevice()
...
Change-Id: Ibdb666fe8dd049735df2288878501a66f7eedc28
2020-06-12 18:32:10 -04:00
German Andryeyev
e4177b75bc
Add missing return
...
Change-Id: Ibe9c1ccb377ce14ad69a0e9828ea70b707acba34
2020-06-12 17:35:45 -04:00
Jason Tang
30e36a4925
Get gpu asicRevision_
...
Change-Id: I8afb53e027d912843655823eebaec29901c33d28
2020-06-12 14:51:52 -04:00
German Andryeyev
c5afd5d412
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
2020-06-12 09:06:07 -04:00
Chauncey Hui
da1f5bfb94
SWDEV-2 - Change OpenCL version number from 3159 to 3160
2020-06-12 03:00:03 -04:00
Rahul Garg
617538074c
Fix IPC create memory failure
...
ROCr expects granular size in hsa_amd_ipc_memory_create
Change-Id: I7c266aa2eef8304f105298a7a668f4c4b3fb5f5a
2020-06-11 13:02:54 -04:00
Saleel Kudchadker
2b771d2f5f
Add logging support for AQL packet
...
Use AMD_LOG_LEVEL=4 and AMD_LOG_MASK=8 to print AQL log
explicitly
Change-Id: I4209d91b460e64be44261d3ab773580067e47c29
2020-06-10 14:04:47 -07:00
Chauncey Hui
4cd1579d46
SWDEV-2 - Change OpenCL version number from 3158 to 3159
2020-06-10 03:00:02 -04:00
Aryan Salmanpour
5203c5271b
reuse available queue with the same priority if queue creation fails
...
Change-Id: I1522935ce1a73c4724135668d039e88a9097710b
2020-06-09 17:56:18 -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
Chauncey Hui
c9ddebbb85
SWDEV-2 - Change OpenCL version number from 3156 to 3157
2020-06-06 03:00:03 -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
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
Chauncey Hui
56af79fa39
SWDEV-2 - Change OpenCL version number from 3155 to 3156
2020-06-05 03:00:03 -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
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
Chauncey Hui
f9fd4bb186
SWDEV-2 - Change OpenCL version number from 3154 to 3155
2020-06-04 03:00:03 -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
kjayapra-amd
e9bd41bf1a
SWDEV-234295 - Dont clear device programs during amd::program::build()
...
Change-Id: I87bc7e2c830edee783ee490bbb087492467f2704
2020-06-03 12:18:25 -04:00
Chauncey Hui
298dd2ff3f
SWDEV-2 - Change OpenCL version number from 3153 to 3154
2020-06-03 03:00:03 -04:00
Matt Arsenault
0c539737cf
Use standard cmake option for USE_COMGR_LIBRARY
...
Change-Id: Id94d88a33772d9c9ab28f9a82c6f761d9c867476
2020-06-02 10:32:45 -04:00
Chauncey Hui
3eda2acdf8
SWDEV-2 - Change OpenCL version number from 3152 to 3153
2020-06-02 03:00:03 -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
Chauncey Hui
ffe6516bb7
SWDEV-2 - Change OpenCL version number from 3151 to 3152
2020-05-30 03:00:03 -04:00
Alex Xie
9e4d81fcb6
Add document README.md
...
Change-Id: Ib186c1b55663e397b562ec53fca2d476de0c96b3
2020-05-30 01:26:03 -04:00
Payam Ghafari
ac8d1ba687
Revert "adding HIP_ENABLE_LAZY_KERNEL_LOADING flag"
...
This reverts commit a3b730b595 .
Reason for revert: HIP_ENABLE_LAZY_KERNEL_LOADING is needed before the runtime is initialized, so this utility cannot be used
Change-Id: I49f8ddb98c9a85b9a77b8fd4b236d06b6b2b0f32
2020-05-29 21:26:25 -04:00
Matt Arsenault
4d1cbcba4e
Don't include llvm directories
...
There aren't any llvm includes here.
Change-Id: Ifce797c50bde772845923b1054fadd4173b3119a
2020-05-29 15:36:26 -04:00
German Andryeyev
dc4e09a63a
Avoid lock for last queued command
...
Use atomics for last queued command update
Change-Id: I759e9d78ea72f23c0d45dbede6250b231e122276
2020-05-29 11:06:55 -04:00
Chauncey Hui
a811cfc567
SWDEV-2 - Change OpenCL version number from 3150 to 3151
2020-05-29 03:00:03 -04:00
Christophe Paquot
0782acabb5
Use a dedicated lock for last queued command set/get
...
Change-Id: If3d2144841c7863cf7afe2ca85aea62e0a3a33c7
2020-05-28 12:49:39 -07:00
Chauncey Hui
eb5b2745e2
SWDEV-2 - Change OpenCL version number from 3149 to 3150
2020-05-27 03:00:03 -04:00
Evgeny
4ffe859cee
fixing a typo
...
Change-Id: I2fc113e1f52ae9356636ddd4597c36c822bed49b
2020-05-26 14:49:27 -04:00
Chauncey Hui
8b256dce4e
SWDEV-2 - Change OpenCL version number from 3148 to 3149
2020-05-26 03:00:04 -04:00
German Andryeyev
fb401bfe6d
Revert "Revert "Reenable cooperative groups""
...
This reverts commit abc115bda8 .
Reason for revert: <INSERT REASONING HERE>
Change-Id: I93c45fae27e0a08b199542d44fb0d65fc74ea13c
2020-05-25 14:11:58 -04:00
Chauncey Hui
3dc756341d
SWDEV-2 - Change OpenCL version number from 3147 to 3148
2020-05-24 03:00:17 -04:00
kjayapra-amd
3603272d24
SWDEV-237467 - Adding return type to comply with -Wall compiler flag.
...
Change-Id: I3c9935105ef262cdbf1c8ee293930b018be0197a
2020-05-23 14:22:54 -04:00
kjayapra-amd
ea0137fb22
FEAT-30761 - Fixing fall through in gfxip major/minor detection.
...
Change-Id: Ib97b3dbe993e01df3360cbeda6bd0d9d366535b6
2020-05-23 12:42:44 -04:00
kjayapra-amd
df6994c3f9
SWDEV-229840 - Just adding DDEV_LOG_ENABLE instead of assigning it to -1.
...
Change-Id: I6859bc55e6e82ffae66ca84ee686c7e76cd8b6f2
2020-05-23 11:00:34 -04:00
Chauncey Hui
3588194e27
SWDEV-2 - Change OpenCL version number from 3146 to 3147
2020-05-23 03:00:04 -04:00
kjayapra-amd
53a890b499
SWDEV-237467 - Return proper hip error codes incase of ROCclr IPC API failures.
...
Change-Id: I1d018918ed71f6d80846b3017f7a15f4ab496554
2020-05-22 22:10:15 -04:00
kjayapra-amd
618d66b5fe
SWDEV-236110 - Fixing uninitialized variable.
...
Change-Id: I26a2a6826da643b57da9746e3ce888a46c4e78f4
2020-05-22 20:40:24 -04:00
kjayapra-amd
32043017ed
SWDEV-229840 - Remove false error messages.
...
Change-Id: I0346768a2a52913d5330bc2007a7706e2a439c47
2020-05-22 18:18:41 -04:00
Matt Arsenault
8988f34935
Export targets for find_package
...
Currently the opencl build hardcodes the path and directly includes
amdvdi_staticTargets.cmake. The proper way to find this is through
find_package, so start exporting the expected format.
Change-Id: Ic960a2dd467d57867cb96ab831dbd85bca336535
2020-05-21 13:47:59 -04:00