Commit Graph

11577 Commits

Author SHA1 Message Date
Chauncey Hui 55a8b68440 SWDEV-2 - Change OpenCL version number from 3235 to 3236
[ROCm/clr commit: e13577cc61]
2020-12-01 03:00:03 -05:00
German Andryeyev 9c462f9a6d Disable worker thread creation for direct dispatch
Change-Id: I28f08ab9352310c9bf843fcb803a48f95ddf4676


[ROCm/clr commit: e4f51e063b]
2020-11-30 17:50:12 -05:00
Michael LIAO 927ab284f9 Fix hostcall test build.
- As `long`/`ulong` on Windows has different bit sizes from Linux
  platforms, even compiled in 64-bit mode. Need to use portable data
  type `int64_t`/`uint64_t` as possible or use `long long` ones to
  match the prototype in LLVM IR.

Change-Id: I62fe16a2e53aa0f2f2b4069b8a1596b8db7050c9


[ROCm/clr commit: f3b63c004a]
2020-11-30 16:47:16 -05:00
German Andryeyev 2af039f994 Enable GPU memory in HMM by default
Change-Id: Ifec4733dc7a932163d921ebe1ae9fbd594ea1ef2


[ROCm/clr commit: 4af8b53846]
2020-11-30 12:39:18 -05:00
German Andryeyev 8014e4c7bc Remove obsolete terminate() method
Change-Id: I66b4a74f17977f1af320f402402a2f1b602e9911


[ROCm/clr commit: 08b846ae12]
2020-11-30 11:46:09 -05:00
Chauncey Hui b8cc056b17 SWDEV-2 - Change OpenCL version number from 3234 to 3235
[ROCm/clr commit: 00832fe573]
2020-11-28 03:00:04 -05:00
Siu Chi Chan fd50c7f4a1 Update HIP docs
Purge all obsoleted information that is only relevant to HCC

Change-Id: Ice6ae174a73ccac9dfe2ca05027d1ecdb32558d7


[ROCm/clr commit: 703816a7e1]
2020-11-27 14:48:09 -05:00
Jason Tang 802e44e9d0 Make the Target ID ELF definition only visible to HIP
Change-Id: I5a87bed806239839156cc4af56d339bfdefc90c6


[ROCm/clr commit: 87762850d3]
2020-11-26 18:17:46 -05:00
Rupam Chetia d34fa10231 [dtest] Tests for hipExtGetLinkTypeAndHopCount() API
1. Negative Test Cases
2. API functionality tests for hopcount and linktype using rocm-smi library.
3. API functionality test for hopcount when devices are reversed.
4. Disabling test case 7.
5. Implemented External Review Comments.
6. Created a new header file hipP2pLinkTypeAndHopFunc.h.
7. Removed test case 0x7 from directed test.
8. Put testMaskedDevice() under __linux__, placed TODO in line 404 (comments) and replaced '&=' with '='.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I1ae256ecfd637d6c25bca293c1724b026be20eca


[ROCm/clr commit: 4b16d3896d]
2020-11-26 09:30:38 -05:00
Sudheer Kumar 8727d68f2e [dtest] Additional tests for d2d transfer
- Test d2d transfer after doing copy from pinned host buffer
- Test d2d transfer after doing copy from unpinned host buffer

SWDEV-238517 for enhancing hip unit tests

Change-Id: Ib262185ce2692036e11c0f95ccb850eb3bce1c81


[ROCm/clr commit: 50524ae60c]
2020-11-26 08:22:55 -05:00
Rupam Chetia cfda23d283 [dtest] Tests for hipModuleGetTexRef() API
1. Negative Test Cases
2. API functionality test using multiple streams.
3. API functionality validation using multiple GPUs.
4. Setting hipTexRefSetFlags() with HIP_TRSF_READ_AS_INTEGER flag instead of 0 as suggested in SWDEV-256096.
5. Enabling test cases 0x03 (short) and 0x04 (char).
6. Implemented external code review comments.

SWDEV-238517 for enhancing hip unit tests

Change-Id: If42796047ec1cf2e3695dc2b7f40a2d9dd50f5bd


[ROCm/clr commit: 4f039d1bf5]
2020-11-26 06:51:49 -05:00
Chauncey Hui 0085c929f3 SWDEV-2 - Change OpenCL version number from 3233 to 3234
[ROCm/clr commit: 1891cdf86d]
2020-11-25 03:00:04 -05:00
Satyanvesh Dittakavi 37f121bda2 Fix hipLaunchCooperativeKernel failure on nvidia platform
SWDEV-262064 - compilation fails when hipLaunchCooperativeKernel C++ routine is invoked 
on nvcc path.
Change-Id: Icde35dd1a7008b406401bb3996c06d7acfb27d8d


[ROCm/clr commit: 80cb172fef]
2020-11-25 01:15:55 -05:00
Sarbojit Sarkar 65126bb8db SWDEV-260281: Fixed rpm dependencies
Change-Id: Ifd05db15d5d2098a0623fd6dd9e977d050a9c4a6


[ROCm/clr commit: c807f11580]
2020-11-25 00:24:37 -05:00
Jason Tang a0dfb527d6 SWDEV-260632 - [PAL] Use new Target ID format
Change-Id: Icd2d95b9c3f5adbd295fb2272bf453ccb9f09678


[ROCm/clr commit: 0c62d3bf1c]
2020-11-24 17:38:13 -05:00
Alex Xie 2a6c8ecb60 SWDEV-258808 - OCLSeparateCompile subtest of oclcompiler error
[PAL to KFD/ROCr][ROCr_Runtime][Vega10] OCLSeparateCompile subtest of
oclcompiler from ocltst test package is encountering clLinkProgram()
failed (chksum 0x00000001) error

If runtime does not provide a file name as dump file to ELF library,
ELF library use a temp file in current folder.
The current folder can be not writable for several reasons:
1. The application current folder might be system folder, the user
  does not have write permission.
2. The current folder is under a readonly file system. This happens for
embedded customers.

Tested in VEGA10. Issue was fixed.

Change-Id: Ic0e9f040b7c7583914301673cce237ab28b0c0cb


[ROCm/clr commit: 6327dbc4cc]
2020-11-24 15:08:12 -05:00
Michael LIAO 07aeadae82 Add initalize _wassert support.
Change-Id: I8922867ec77c975cdb235276fffc3c6272253a11


[ROCm/clr commit: 65f3439a0d]
2020-11-24 11:24:54 -05:00
Chauncey Hui 46c95229d0 SWDEV-2 - Change OpenCL version number from 3232 to 3233
[ROCm/clr commit: 7c7e36dd44]
2020-11-24 03:00:04 -05:00
Tony 0d2004544b Add additional targets
Add support for loading the following targets:

- gfx705
- gfx805
- gfx90c
- gfx1031
- gfx1032
- gfx1033

Change-Id: Ib7f61c33662619757409e95fb0b50068f9e11065


[ROCm/clr commit: 8493142a22]
2020-11-23 20:31:45 +00:00
Tony 8e1b19fb19 Add additional targets
Add:

- gfx602
- gfx705
- gfx805
- gfx90c
- gfx1032
- gfx1033

Change-Id: Idfe7d42bacd133413ac3ffd058b7ff9d298677e2


[ROCm/clr commit: 4f8067beab]
2020-11-23 20:00:01 +00:00
Aryan Salmanpour 265afae619 don't update maxComputeUnits_ if any exception occurs during conversion of global CU mask string
Change-Id: I7664809fe84d7422b18b1272ffeb642e03a39f1a


[ROCm/clr commit: 72277c29b0]
2020-11-23 09:51:19 -05:00
Chauncey Hui df7f58d43d SWDEV-2 - Change OpenCL version number from 3231 to 3232
[ROCm/clr commit: 81e22bf4b7]
2020-11-22 03:00:03 -05:00
Jason Tang fdf6d8f1d2 SWDEV-260632 - [PAL] Simplify NullDevice::init()
Change-Id: I9d44162f38806e3742c18da48e382baafeb7060f


[ROCm/clr commit: 3351b9c993]
2020-11-21 10:00:35 -05:00
Chauncey Hui 572fb3b582 SWDEV-2 - Change OpenCL version number from 3230 to 3231
[ROCm/clr commit: 044bc684e6]
2020-11-21 03:00:03 -05:00
Aryan Salmanpour 9f6dc2f7b3 [dtest] add a test case for hipExtStreamGetCUMask API
Change-Id: I2b03f06fc96c4af0c3dcf4efc0b83126971aab46


[ROCm/clr commit: e086f2bbff]
2020-11-20 14:08:02 -05:00
Aryan Salmanpour 4376b55b25 Add support for hipExtStreamGetCUMask API
Change-Id: I0fa67ad581dd75556f17c7410af2c1d5cb6ae99a


[ROCm/clr commit: 00268eaeed]
2020-11-20 13:41:38 -05:00
Cole Nelson a0549a85db Merge "packaging: conformant package names" into amd-master-next
[ROCm/clr commit: c775ab32ef]
2020-11-20 12:50:42 -05:00
jujiang 2d3f3335bc SWDEV-249486-add disclaimer
Change-Id: Ic2f478a354ddb6520c8fb762c8978676eb7d3835


[ROCm/clr commit: 51b55c9137]
2020-11-20 11:27:18 -05:00
Satyanvesh Dittakavi 8d4b0ecb0c SWDEV-255614: Fix Caffe2 Test Failure
Change-Id: I043caa89b2a43dace7f18c739f30d2a7bfa644ca
Fixes the issue when memcpy DtoH is performed on device 0 where the device buffer 
is allocated on device1 and the destination pinned buffer is allocated from device 0.


[ROCm/clr commit: 60ec2a3e46]
2020-11-20 10:24:50 -05:00
Vladislav Sytchenko 07f463ab3f Report maxTexture1DLinear property
Change-Id: If562bbee80d8b98712806cb8258b5a7482d33bf6


[ROCm/clr commit: 63167e4b70]
2020-11-20 10:18:20 -05:00
Cole Nelson 982fb1b666 packaging: conformant package names
This patchset addresses package name requirements:
http://confluence.amd.com/pages/viewpage.action?pageId=234791224

Email contact  corrected: SWDEV-258090

Names as tested (internal example):
rocm-opencl-dev_2.0.0.40000-cpnn.14322_amd64.deb

(release examples):
rocm-opencl-2.0.0.40000-sles152.3022.x86_64.rpm
rocm-opencl-devel-2.0.0.40000-3022.el8.x86_64.rpm

Change-Id: Icb202085ae4065ba264d02d34cadbf1a0f393f9a
Signed-off-by: Cole Nelson <cole.nelson@amd.com>


[ROCm/clr commit: 2174367fb4]
2020-11-20 07:17:35 -08:00
Aryan Salmanpour e8c7cf569f Add an environment variable for setting a global CU mask
Change-Id: I773b152023c7b8e1e679a42015748f9b23fd946d


[ROCm/clr commit: d03ee6eff6]
2020-11-20 10:05:09 -05:00
Chauncey Hui a1bf89f8d7 SWDEV-2 - Change OpenCL version number from 3229 to 3230
[ROCm/clr commit: 393e118b91]
2020-11-19 03:00:04 -05:00
cjatin 762fd48e96 Adding hip support email to cmake packaging
Change-Id: Ibef7ae5a631ba759bc378478c91d562d4fde3079


[ROCm/clr commit: da1f0cdc67]
2020-11-19 02:08:51 -05:00
Jatin Chaudhary c1aa765b33 Adding -x hip/c/none after each input file, this should allow compilations like 'hipcc a.cc b.o c.c'
Change-Id: If35571c0f8ff8bf51aebd793fc0c81c0e418ca5c


[ROCm/clr commit: d48c1d359a]
2020-11-19 02:04:33 -05:00
Rahul Garg 5a56ff9cfa Fix async flag in hipMemset3DAsync
Change-Id: I3dc717c14bdd1d46873e03c687bdf57f9202663e


[ROCm/clr commit: 236352a64d]
2020-11-18 20:32:18 -05:00
Vladislav Sytchenko e6b6308e0b [PAL] Force large buffer mappings to use pinned memory
PAL doesn't perform chunking for system memory allocations, hence we
should fall back to using pinned memory for mapping large buffers.

Change-Id: I1b472616b72d12ed0105fb65532acacdb98ac7b3


[ROCm/clr commit: b4e212a0f9]
2020-11-18 17:12:32 -05:00
German Andryeyev 6a6549e474 Add image view allocation
If deferred allocation is disabled, then make sure the image view
is created without a delay. Also reset the allocation state, since
create() method isn't called for a view creation.

Change-Id: I7aa22a62bff18289ade83e56b5d3305ba68c715b


[ROCm/clr commit: 089a5cc4ad]
2020-11-18 09:37:30 -05:00
Chauncey Hui 860733c02d SWDEV-2 - Change OpenCL version number from 3228 to 3229
[ROCm/clr commit: ec22c54d85]
2020-11-18 03:00:08 -05:00
Yaxun (Sam) Liu 24d1c8c229 Fix embedding PCH
Change-Id: Ibaf043c9e331f15965185cd4195da98d9441cba3


[ROCm/clr commit: cdc7f3f49e]
2020-11-18 00:56:42 -05:00
Michael LIAO 16a93d1b42 Fix cooperative group tests.
- `gm` should be a global variable instead of auto local variable.

Change-Id: Ibde1e54ee83fa5725f21820b4b792a97bf7df6ad


[ROCm/clr commit: 28e1fb0cf7]
2020-11-17 14:09:16 -05:00
Vladislav Sytchenko b33dd902e8 Disable branch-fold optimization temporarily for some Adobe apps
Change-Id: I8b4af4decb6b3ba4b856167ffb0ae8200b21a835


[ROCm/clr commit: ec130a5a28]
2020-11-17 12:51:33 -05:00
Rahul Garg 908decb338 Fix hipDeviceGetByPCIBusId
SWDEV-260845

Change-Id: I2d6db15906d794c9ebfa85b745a2c1bbb6f3e731


[ROCm/clr commit: d11027c522]
2020-11-16 23:28:52 +00:00
Chauncey Hui 5300814506 SWDEV-2 - Change OpenCL version number from 3227 to 3228
[ROCm/clr commit: a77b718fc9]
2020-11-14 03:00:03 -05:00
Vladislav Sytchenko f8d007fadb [PAL] Navi23 support
Change-Id: I10bb0653746060bd83ca7feda10fdafc07ced845


[ROCm/clr commit: 026baec57b]
2020-11-13 15:08:04 -05:00
Tao Sang f3b3c0ba9c Remove unnecessary stuff from hip cmakefile
Remove the following from hip cmakefile,
1.find_package cmds of hsa-runtime64 and amd_comgr;
2.macros of USE_COMGR_LIBRARY and COMGR_DYN_DLL
because they have already been used in Rocclr cmakefile.
cmake mechanism will make hip cmakefile inherite them.

Change-Id: I03b527fc4135c79bb35cbbfe419211ec363cb067


[ROCm/clr commit: 10f4918d97]
2020-11-13 15:01:32 -05:00
Vladislav Sytchenko 77660d1ae9 [PAL] Navi22 support
Change-Id: I9f1741898b4afaa0e787d8053d8f006ee3d17017


[ROCm/clr commit: 5e60e06a50]
2020-11-13 15:00:57 -05:00
Vladislav Sytchenko 8f87022fde [PAL] Report actual HW limits for max image buffer size
Change-Id: I62aa3f1e9709b91ba223af0abf8bf6395fe8ec59


[ROCm/clr commit: 353a018bce]
2020-11-13 14:59:50 -05:00
German Andryeyev a7adace36e Add direct dispatch simple hack for testing
The hack dosn't really track the commands status. It may be not
necessary for HIP, but will cause early resource release.

Change-Id: I791ad36dd8abd3b6b3d2c9b16a210a555c08ca64


[ROCm/clr commit: 532f0ae951]
2020-11-13 10:36:23 -05:00
Jason Tang f4c4323f8e SWDEV-260376 - [PAL] Fix Windows build
Change-Id: I788198b5980a46981de4b2e7aaa6a495e6e98cad


[ROCm/clr commit: 2ee2392f63]
2020-11-13 09:51:43 -05:00