Граф коммитов

5885 Коммитов

Автор SHA1 Сообщение Дата
Satyanvesh Dittakavi c8e84cbf02 SWDEV-275317 - Fix hipMemcpy2DFromArray to return proper error types
Change-Id: Id722865d81460bfd2fa6ad7a198b6e3c2a08265a


[ROCm/clr commit: daafd303ec]
2021-03-09 05:22:23 -05:00
Vladislav Sytchenko 11ad5689db SWDEV-232428 - Fix HIP printf tests on Windows
On Windows there's something fundamentally broken about redirecting IO
into a file and then restoring that said IO to it's original state. Even
though no syscalls would fail, the output would sometimes either go into
CLI or straight up nowhere.

Simply using pipes instead of a temporary file magically resolves the
above issue ¯\_(ツ)_/¯

Unfortunately the max pipe size on Linux is 1Mb, which is not enough to
store all the data printed by the kernel. This leads to a softhang in
vprintf().

Stick to using a temporary file on Linux, but switch to pipes on
Windows. Slightly refactor the CaptureStream struct to accomadate this
difference.

Change-Id: Id8e68f150df47815a4f652ee2bcd6cfb7c3e3bac


[ROCm/clr commit: 55377dfee2]
2021-03-08 18:12:42 -05:00
Vladislav Sytchenko a38929b879 SWDEV-232428 - Fix hipPrintSpecifiers test failure on Windows
The following snippets has different behaviour based on platform.

printf("%p", 0x123abc);
Linux   -> 0x123abc
Windows -> 123ABC

printf("%p", nullptr);
Linux   -> (nil)
Windows -> 0000000000000000

%p specifier according to C spec is implementation defined, so we need
to adjust the reference string to be correct on Windows.

Change-Id: I7059fa0f6cde611718bd76655637670fcbccf43c


[ROCm/clr commit: 4dd4d8c05f]
2021-03-08 18:11:33 -05:00
German Andryeyev 03ee6e58b0 SWDEV-272496 - enqueue a marker for callbacks always
The current implementation in ROCclr for callback is
based on OCL specification. If in HIP the same command
could get multiple callbacks, then ROCclr will process them in
a reverse order. Unique Markers for each callback will make
sure it won't happen.
Add a dependency wait for callbacks, since HSA signal callback
doesn't guarantee the order.

Change-Id: I9d514734e258312fe9a74d48132361eb17c52d67


[ROCm/clr commit: e48111bfce]
2021-03-08 14:19:53 -05:00
Satyanvesh Dittakavi 6531614a23 SWDEV-274404 - Add hipDrvMemcpy3D* and hipMemcpy2DFromArray* APIs on HIP CUDA
Change-Id: I4aba2bff60a7bae6b01b6e471968227b0df8e192


[ROCm/clr commit: 37d4677aba]
2021-03-08 13:14:25 -05:00
Sarbojit Sarkar 27e4e966f7 SWDEV-254329 - Profiler ON/OFF fix
Change-Id: I996d185d2079ce68234109564a529a187ba4f04b


[ROCm/clr commit: 95b2ad994c]
2021-03-08 01:27:46 -05:00
Julia Jiang f8a37ae71f SWDEV-270961 - Update HIP documents
Change-Id: Iba88d78456b9b190c2af92ca696777e459e4acb0


[ROCm/clr commit: 3a7c3c8f07]
2021-03-05 16:07:38 -05:00
David Salinas ef1ef03b0b SWDEV-274114 - fix dependency issues for perl modules
Change-Id: I320d5fb50db3eecd433e81ab49703ca04c882711


[ROCm/clr commit: a2b7d3c9a7]
2021-03-04 16:52:35 -05:00
Tao Sang 7c5373dbdc SWDEV-274725 - Enable hiprtc test
Enable hiprtc test for Rocclr.
Remove unnecessary LINK_OPTIONS hiprtc.

Change-Id: I9ec74c475161b3e31df47d193449023e921f2923


[ROCm/clr commit: cc086cb08c]
2021-03-04 15:07:38 -05:00
Arya.Rafii 3d6667ccb7 SWDEV-269246 - Implementation of hipDrvMemcpy2DUnaligned
Change-Id: I86fdd3b930cbd74c45cd31944f0ea52c0ff65a59


[ROCm/clr commit: 8cb232ddef]
2021-03-04 14:38:06 -05:00
Arya.Rafii cd4aec747f SWDEV-269246 - Added missing exports for hipArrayDestroy
Change-Id: I730814720bb618e895efbe2f412e437110bed8bc


[ROCm/clr commit: 9f142f988d]
2021-03-04 14:29:16 -05:00
kjayapra-amd 2b715e4826 SWDEV-259566 - Adding support to retrieve handle for offsetted pointer.
Change-Id: I5da5ab6a24c6df915950637feb486b8c288e60e0


[ROCm/clr commit: 8ef68df3a8]
2021-03-04 12:28:56 -05:00
Rahul Garg 596f761671 SWDEV-275204 - Bump version to 4.2
Change-Id: I0b3512591b56bd114d935c09014b44cd45547b9e


[ROCm/clr commit: 508f524204]
2021-03-03 23:42:21 -05:00
German Andryeyev 23c0d39315 SWDEV-272496 - Delay enqueue until callback setup
With direct dispatch enqueue occurs before callback update and
it can't be tracked in the device backend

Change-Id: Ie8793e3ddb68cc5bb36348f7a8dcdbdc87a2487c


[ROCm/clr commit: b0402a95bf]
2021-03-03 13:14:28 -05:00
Sarbojit Sarkar dcca6fe956 SWDEV-267199 - hipMalloc test issue on centOS
Change-Id: I789516e2bf921ffd3577f97571e33bcc08047849


[ROCm/clr commit: 7d6bf9fb97]
2021-03-03 11:47:13 -05:00
Sarbojit Sarkar dbdda43f31 SWDEV-274436 - Fixed square build issue
Change-Id: If64be13be48bb7e620172ec245bc819c923f918a


[ROCm/clr commit: 35265be757]
2021-03-03 11:46:11 -05:00
Tao Sang 5f3a3bac53 SWDEV-274915 - Prevent repeatedly linking dependence
Some upstream will load hip multiple times thus Rocclr static lib  will
be linked to hip::amdhip64 many times. This will bring some unexpected
issues such as in hipBLAS. The patch prevents his happening.

Change-Id: I6bb27659f74371dae6e59c59fd6bb2022cc062ff


[ROCm/clr commit: f65348cfbe]
2021-03-02 17:33:52 -05:00
Ravi C Akkenapally 4cf7a5799a SWDEV-179105 - Stream Operations: Add swqupport for Wait and Write
Change-Id: I9d6d0665d12b62fe705ce1569a0e8264a4f23ab7


[ROCm/clr commit: fd0f49503f]
2021-03-02 12:15:46 -08:00
Tao Sang f6a1072ffe SWDEV-274307 - Send NVCC_OPTIONS to linker
Flags of NVCC_OPTIONS need be sent to linker. Because compiler and
linker flager are mixed in NVCC_OPTIONS.

Change-Id: I3db37b962808566ea145e3cbdefa66d373e2d360


[ROCm/clr commit: f727a048d3]
2021-03-02 09:48:00 -05:00
Tao Sang 2a6f45533d SWDEV-270973 - Add missing copyright headers
Change-Id: I6bb27650f74372dae6e29c79fd6bb2022cc062fe


[ROCm/clr commit: 4048db950c]
2021-03-01 19:46:24 -05:00
Julia Jiang 5c18e96435 SWDEV-272921, SWDEV-270961 - correct index and linkage
Change-Id: I48a66091bb6f304864e282bd03e9eb748fa04da7


[ROCm/clr commit: 99e03e067a]
2021-03-01 16:07:00 -05:00
Jatin Chaudhary 59204ceea9 SWDEV-272361 - Dont call memcpy2d if width is 0 or height or depth is 0
Change-Id: I22324a536d2a5e68b9fc3e5ee4ad821b49021a17


[ROCm/clr commit: ec832d42d1]
2021-03-01 14:34:58 -05:00
cjatin 3152413001 SWDEV-271274 - Changing DevLogPrintf to LogPrintf for cases where error condition is being returned
Change-Id: I153d071f7859e9412ea0c69f53c53d190453d73d


[ROCm/clr commit: 564417d00f]
2021-03-01 14:33:46 -05:00
Ashutosh Mishra cd0b146be0 SWDEV-271126 - Memory obtained from getDeviceMEmory can be NULL
which can cause segmentation faults. Hence checking for its sanity

Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com>
Change-Id: I78b4d029f0926a1369a8ebbeb4aef951a8f1f1d7


[ROCm/clr commit: b9c0065e4f]
2021-02-26 23:29:53 -05:00
Payam a8df01574a SWDEV-273405 - updated roctracer path to use env var
Change-Id: I9ec74c475161a3e310f57d193449023e921f2922


[ROCm/clr commit: 5b7dd3a4b9]
2021-02-26 14:51:26 -05:00
Vladislav Sytchenko 610611edd1 SWDEV-232428 - Enable device printf for Windows
Change-Id: Id72cfc34cfcfcbcb459bd8d84979637eaf7947dd


[ROCm/clr commit: 1f8bdcaf20]
2021-02-26 11:46:38 -05:00
Satyanvesh Dittakavi 936d760a58 SWDEV-271491 - Fix flags for hipSetDeviceFlags on HIP-CUDA path
Change-Id: I29446d5cc5a26a4b83fa45175ccdf1d8f3a9ea40


[ROCm/clr commit: c2a767a66e]
2021-02-25 12:06:33 -05:00
Jatin Chaudhary 75e91e9073 SWDEV-272811 - hipCabs returns a double and uses sqrtf, which maps to f32 operation. sqrt should be used instead
Change-Id: I4f74ee8853113fcebfa508bea9308ae93c7ad13b


[ROCm/clr commit: 474493b929]
2021-02-25 08:47:19 -05:00
Satyanvesh Dittakavi 4f7df3c396 SWDEV-272082 - Fix Cooperative groups tests on HIP CUDA path
Change-Id: Icc68bc1e48c01ee120aaab17c928ffbbb96eae96


[ROCm/clr commit: 3abd25b1e9]
2021-02-25 04:54:27 -05:00
Rahul Garg 4ca5114b35 SWDEV-269604 - Revert "Update dispatch latency with wall time measurements"
This reverts commit be82aa43fb.

Hold wall time related updates till direct dispatch is ready.

Change-Id: I53b232f6f51bc2fc71b6b639fe0081e2907e9707


[ROCm/clr commit: 62c278c39d]
2021-02-25 04:50:44 +00:00
cjatin 3d0abe6803 SWDEV-273859 - Add --hip-version to comgr call
Change-Id: Iae6c1a5e958a73f5d9849c13c8b49eede914e25e


[ROCm/clr commit: 41d7c688c9]
2021-02-24 23:41:34 -05:00
Arya.Rafii 64f7d5b430 SWDEV-269246 - Fixed null-case logic for hipCtxPopCurrent
Change-Id: Ic173980caccde8afee85a75c55a5d536f421549e


[ROCm/clr commit: 5c2eb09624]
2021-02-24 13:20:24 -05:00
kjayapra-amd 9374c2bb93 SWDEV-274058 - Porting HIP, ROCclr gfx90a changes to mainline.
Change-Id: I02f53d4c7897d26243620cfc961fa9bd984cede4


[ROCm/clr commit: 20dd93a3be]
2021-02-24 09:55:43 -05:00
DURGESH KROTTAPALLI 781a11c2ae SWDEV-238517 - Enhancing hip unit tests
[dtest] Tests for hipEvent related APIs

Added Negative scenarios for hipEvent related APIs

1. Verifying all hipEvent related APIs by passing nullptr.
2. Pass illegal/unknown flag to hipEventCreateWithFlags API

Change-Id: Ia0a24065d16fe0f5ee28a88e280c25c1be0c3590


[ROCm/clr commit: 2a0593258c]
2021-02-24 06:29:26 -05:00
German Andryeyev ad0fb5721d SWDEV-272496 - Add marker if notification was the last command.
If MT is enabled, then a new callback can be received before the previous
command is processed, causing a conflict of 2 callbacks.

Change-Id: I5ff8f231208e8d62824d590d3c8e791e8e36affb


[ROCm/clr commit: fe7501a64b]
2021-02-23 13:12:06 -05:00
Tao Sang 06a085377d SWDEV-272088 - Fix runtimeApi/event/hipEventElapsedTime issue
runtimeApi/event/hipEventElapsedTime will report invalid resource error
on cuda due to wrong calling sequence. The fix will arrange the calling
in right sequence.

Change-Id: I3db28a962888566ea135e3cbdefa68d373e2d369


[ROCm/clr commit: b9cf12e920]
2021-02-23 12:36:40 -05:00
Tao Sang ae1db33145 SWDEV-272089 - Shorten memory test time
memory/hipMalloc_MultiThreaded_MultiGpu costs too much time to finish.
    1 GPU: about 1000s, 2 GPUs: about 2200s
But Jenkin build need quick return and ctest will kill test that last
1500+s. So we need shorten the test time.

Change-Id: I3db27a962808566ea135e3cbdefa66d373e2d369


[ROCm/clr commit: 657a515e60]
2021-02-22 18:01:00 -05:00
Tao Sang fc6ff00574 SWDEV-273484 - Fix static lib build failure
Exclude gcc/LaunchKernel from static lib as
it's shared lib test case only

Change-Id: I3db17a962808565ea135e3cbcefa66d373e2d364


[ROCm/clr commit: f055582473]
2021-02-19 17:11:26 -05:00
Vladislav Sytchenko c920024cde SWDEV-255979 - Fix Windows build
Change-Id: I1f1375911d90ded9043a4716e7d09a3ca6a33c23


[ROCm/clr commit: be3c5183b2]
2021-02-19 11:31:52 -05:00
Rahul Garg 96c576eef4 SWDEV-270994 - Bump version to 4.1
Change-Id: Ibe3fcff157f9e0872852dc690ed5db8a8c248049


[ROCm/clr commit: 18bd7b0c13]
2021-02-19 01:59:39 -05:00
agodavar 601d2453be SWDEV-255979 - Added support of __managed__ static variable
Change-Id: I9d5cbbecc8c19ec38a95c94ab4130465ba76c102


[ROCm/clr commit: d5b4762d96]
2021-02-17 13:01:29 -05:00
Satyanvesh Dittakavi 82a333b3ba SWDEV-272543 - Fix hipDeviceGetP2PAttribute when both devices are same
Change-Id: I3db17a962807565ea134e3cbcefa66d373e2d363


[ROCm/clr commit: d721c79f36]
2021-02-17 12:41:59 -05:00
Rupam Chetia 322818430d SWDEV-238517 - [dtest] Adding new test case to validate hipDeviceProp_t arch values
1. Added 1 scenario to validate value of deviceProp.arch.has* with
value of __HIP_ARCH_HAS_* device flag.

SWDEV-238517 - Enhancing hip unit tests

Change-Id: Idb237a76b75180ce77808853a5351f19077a0d33


[ROCm/clr commit: a28c367ed0]
2021-02-17 03:23:42 -05:00
Sarbojit Sarkar e919fb467d SWDEV-272769 - Enabled gcc based hip test
Change-Id: I48bc850df00848bf11de71e3f614273111d31b47


[ROCm/clr commit: ed7f4560cf]
2021-02-16 21:20:00 -05:00
Tao Sang 18ec4c7268 SWDEV-272089 - Fix concurrent memory test failure on CUDA
Change-Id: Ibf35c789d6bd4279bdcedba1a6e057639c258489


[ROCm/clr commit: 5039649dd4]
2021-02-16 10:00:23 -05:00
Jatin Chaudhary 3c08aece90 SWDEV-268531 - Fixing shadow variable warning in vector_types
Change-Id: Ic57e22853529a953582c9194d09133a5aab989aa


[ROCm/clr commit: 3f6bf4c260]
2021-02-16 06:51:37 -05:00
Maneesh Gupta 60f4dcc336 SWDEV-271416 - Keep HIP_DYNAMIC_SHARED macro for compat with existing HIP apps
Change-Id: I536e0c65d6e8696cbc369082350834abd710abca


[ROCm/clr commit: 42ab466904]
2021-02-16 00:09:48 -05:00
Rupam Chetia 22c580bac8 SWDEV-238517 - [dtest] Test for Multiple Target Architecture Code Object
Added a test to generate a code object for multiple target
architectures (including for the current device),
load and execute the kernel.

SWDEV-238517 for enhancing hip unit tests

Change-Id: I509d01124abdc0495cfc770ab5508738f108c91c


[ROCm/clr commit: 05409f05d0]
2021-02-15 06:41:24 -05:00
Rahul Garg e78e7b8abc SWDEV-271182 - Fix HdpMemFlushCntl and HdpMemFlushCntl
Change-Id: I33e5a677c6c6e1d83e6343f8e3690d7b34fe2af5


[ROCm/clr commit: 607795ec9d]
2021-02-12 14:38:56 -05:00
Sarbojit Sarkar 8a48c8a0e0 SWDEV-270630 - Added missing nullcheck
Change-Id: I7caf26c59c4660e26b4159da35731c2ce1600819


[ROCm/clr commit: 3f5fb8e9df]
2021-02-12 13:29:30 -05:00