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

6428 Коммитов

Автор SHA1 Сообщение Дата
pghafari 86a5e82a4b SWDEV-245532 - HIP - Vulkan interop semaphores
Change-Id: I89be5ee84d4728d76e1987d5016c944c0dbc9a96
2021-05-11 11:44:59 -04:00
Jason Tang ba42be8018 SWDEV-277566 - Add amd::Program::load interface
Change-Id: Iba32fd6add7b1c51b33a9ea899732044c0a064f6
2021-05-11 10:51:45 -04:00
Vladislav Sytchenko 86486b2c4a SWDEV-240806 - Fix Windows build
hipGraphAddHostNode and hipGraphAddMemcpyNode1D are not part of the HIP
graph implementation, hence they should not be exported.

Change-Id: Ia3d0188895fb4f64ebfa23d4a0a09c44438f878d
2021-05-11 10:07:49 -04:00
German Andryeyev 31ae72a164 SWDEV-240804 - HMM changes
- Accept hipMemAttachHost flag
- Don't allocate HMM memory if HMM is disabled in KFD

Change-Id: I3d386eb0a109a19c16a87a728944a3a6669f643a
2021-05-10 13:50:21 -04:00
Aaron En Ye Shi 811bc363c8 SWDEV-283266 - __HIPCC_RTC__ macro added to HIP headers
For hipRTC on Windows, add macro __HIPCC_RTC__ to allow
online compilation of with device functions excluding standard
C/C++ headers, system headers, and host HIP APIs.

Change-Id: I1d91f042baf1359856ec83ab7030dc58785e0334
2021-05-10 17:28:07 +00:00
Julia Jiang 73964037c1 SWDEV-272921 - Remove non-existing link for square sample
Change-Id: If8c87a6ded6aacaa4301b1b80ee218897219a6fb
2021-05-10 12:09:28 -04:00
Anusha Godavarthy Surya c35ba37287 SWDEV-240806 - Initial commit for hipGraph and stream capture infrastructure
On StreamBegincapture captures the parameters passed to APIs and respective node will be created and added to graph
All parameters are passed to STREAM_CAPTURE macro, it checks if stream in capture mode and redirects the call to the capture function and returns
Updated hipStream and hipEvent with capture parameters
Added handling for hipStreamBeginCapture & hipStreamEndCapture

Change-Id: Ic8926a7b4336c2cc81f0b3a9a224aa392c474134
2021-05-07 17:38:16 -04:00
Ravi C Akkenapally db7421cb10 SWDEV-281998 - TEST: StreamOperations : Split StreamWait and Update into two seperate threads
Change-Id: I0fda25857dd9f097f36ce1bafedb7689ca2beecc
2021-05-07 11:11:28 -07:00
Julia Jiang ba1c5a955a SWDEV-282350 - update HIP documents
Change-Id: Iff3a49e75279b1ecee0672a6d35f6b84a8256296
2021-05-07 12:38:13 -04:00
Maneesh Gupta 2b04d249fc SWDEV-252801 - Fail if launch params exceeds launch_bounds
Change-Id: I90c8d0f1897ca63f00c3eec7c99d649a5c43416d
2021-05-06 22:38:50 -07:00
German Andryeyev 192c47e251 SWDEV-272496 - disable direct dispatch by default
Change-Id: I706387355add75852c570be2656131ef99e8958c
2021-05-06 16:17:26 -04:00
Vladislav Sytchenko 9e545007bc SWDEV-273235 - Allow explicitly disabling LF support
Currently LiquidFlash cannot be supported from Github Enterprise,
hence we need to be able to build with out it.

Allow this by setting -DWITH_LIQUID_FLASH=0.

Change-Id: If59afe45c02a1623639360dbcc3927360f16ebd3
2021-05-06 13:05:12 -04:00
Julia Jiang b4158d2bc0 SWDEV-282350 - Adding hip_debugging
Change-Id: I18f52a76f88bcd3a0628030a6798d546a3973f4d
2021-05-06 11:48:52 -04:00
Anusha GodavarthySurya 1cc65c48a2 SWDEV-271978 - Function __byte_perm to match CUDA behavior
Selector indices are as follows (the upper 16-bits of the selector are not used): selector[0] = s<2:0> selector[1] = s<6:4> selector[2] = s<10:8> selector[3] = s<14:12>

Change-Id: Ibf76c6ec2374f1f5b9bba8bd9dbd73660f830eea
2021-05-05 03:00:32 -04:00
Christophe Paquot 74a75f88d0 SWDEV-270599 - Refactored the way we get time from start/stop events in all cases
Change-Id: Id3f9bcad45d643e493daf9d5f47b3a032a427177
2021-05-03 13:16:36 -07:00
Aaron En Ye Shi 9edd31100d SWDEV-283930 - Fix bugs in HIP Tests on Windows
Windows doesn't have headers unistd.h, sys/wait.h, so
remove them for _WIN64. Also, Windows doesn't have rand_r
so define it. Fixes builds for HIP tests:
d2dMemCpyWithPinnedHostMemory, hipMemset3DFunctional,
hipModuleLoadMultProcessOnMultGPU,
hipModuleLoadUnloadStress, hipModuleNegative,
hipStreamACb_ThrdBehaviour, hipMemcpyNegativeMThrdMSize,
hipStreamACb_MStrm_Mgpu, StreamAddCallback,
hipStreamACb_StrmSyncTiming, hipStreamACb_MultiCalls,
hipMallocConcurrency, hipMemset3DRegressMultiThread,
and hipSetGetDevice.

Change-Id: Id2f98d664716026c590d879e464ba467d4c071be
2021-04-30 21:38:45 +00:00
kjayapra-amd 9c07201c6b SWDEV-245533 - Implementing Mipmap array APIs
Change-Id: I222c8d0fcbd50cdefd702462e689463bb36366d2
2021-04-30 16:33:43 -04:00
agodavar ace2cf2840 SWDEV-283897 - SWDEV-283901 - Fix directed and performance test failure
Change-Id: Ia0e9ab5d172802403af7bf6568f985b82e799baf
2021-04-30 17:56:44 +00:00
Jatin Chaudhary 6c01fb7ab8 SWDEV-283959 - Make hipcc recognize -xc -xc++ -xhip options and add CXX flags when user mentiones filetype as -x hip
Change-Id: I737fba3db77eef21eb88ccf648b4134218249456
2021-04-30 04:58:07 -04:00
Satyanvesh Dittakavi 98d1acf1f2 SWDEV-278464 - Unit Test For Suspected race condition
Change-Id: I561ec3073a6e6813c5f7aa50983fcf098c6ac54a
2021-04-29 23:40:43 -04:00
Tao Sang a95ff95bf7 SWDEV-283515 - Fix crashing in kernel launch on MGPUS
Fix wrong mixing of current device and stream device in
ihipModuleLaunchKernel() and hipLaunchCooperativeKernel().

Fix missing hipSetDevice() in hipMemcpyWithStream* tests.

Change-Id: I09333bb40d239bb42c832df5ea16d17eeaeff5e7
2021-04-29 14:46:47 -04:00
Anton Gorenko 6b14050424 SWDEV-272536 - (PR-2229) Fix conversion of texture addressing mode
hipAddressModeClamp corresponds to CL_ADDRESS_CLAMP_TO_EDGE.
This change fixes incorrect sampling near texture edges.

https://github.com/ROCm-Developer-Tools/HIP/pull/2229

Change-Id: Ia2af9f3cb582a74af7b1f65bad1ed0310eab2628
2021-04-29 12:19:15 -04:00
Satyanvesh Dittakavi c81a7136d2 SWDEV-283388 - Fix hipMemRangeGetAttributes on Nvidia Platform
Change-Id: I5daeacd9dd5c6ce7f914d6e6e45dd41fb2a675a5
hipMemRangeGetAttributes was returning hipErrorInvalidValue due to improper
mapping of the arguments to cudaMemRangeGetAttributes.
2021-04-29 06:06:03 -04:00
cjatin a717608f93 SWDEV-277903 - Add HIP_ROCCLR_HOME under HIP_PLATFORM==amd
Change-Id: I00e156eb0a51f505300e288af59a0cf39b606e26
2021-04-29 03:08:34 -04:00
Satyanvesh Dittakavi 2122a32034 SWDEV-283213 - Fix hipMemset2D, 3D failures in Debug mode
If the width is 0, hipMemset2D or 3D APIs should return success
doing nothing
Change-Id: I97f8825d090a73ee63145e52d2b6d2cc0eddade3

Change-Id: I9d62fee70929ad0c79b947aa4cbbc8ab898fb64a
2021-04-28 18:53:53 -04:00
Rahul Garg 429b4ffd1f SWDEV-266973 - Add missing HIP_RETURN
Change-Id: Ib569a8cb030179b71406d47fd08c7e1e7ab6eb7c
2021-04-27 19:55:28 -04:00
Rahul Garg 3ef911cb14 SWDEV-280672 - Support HIP_PLATFORM=hcc in hipcc with warning
Change-Id: I6b199ea5ebed828a7f82c20d50fdf0fcfb887a64
2021-04-27 19:53:56 -04:00
Aaron En Ye Shi cfcf04d502 SWDEV-222423 - Add HIP Sample 2_Cookbook/15_static_library
HIP supports emitting two types of static libraries. One type
will export host functions and is compatible with host linkers.
The second type exports device functions, but is generated with
ar manually. Also, add a README with steps on how to run these
samples with Makefile or CMake.

Change-Id: I1be15c2884583b370092bc8e4bf04f726f8f5a27
2021-04-27 16:05:15 -04:00
Julia Jiang a3fd92ba5f SWDEV-208837 - add host allocation Numa aware
Change-Id: I9516b1a7411695d22038e0a3657822ee453ed709
2021-04-27 10:45:57 -04:00
Satyanvesh Dittakavi 3a6324f5d1 SWDEV-281062 - Modify the IPC tests
Remove hipSimpleIpcMem.cpp as the IPC APIs are expected to work
with different processes and not the same process. Also, modify
the hipMultiProcIpcMem.cpp to test the offset scenarios
Change-Id: Ia161fc9ab39e27f22d8ef7268e0d7669ece5cdce

Change-Id: Ic3cb79ef4aca40b4a504483eb81fd83bb8a201d9
2021-04-27 01:19:08 -04:00
German Andryeyev b777f4f010 SWDEV-240804 - Check the managed capability
Some system have HMM disabled. Check the capability before running the test.

Change-Id: I098d04d87c12ec317b4cb57e121e702b6bba03bc
2021-04-26 14:10:57 -04:00
German Andryeyev a18c778a83 SWDEV-244287 - Keep direct dispatch for Linux only
Change-Id: I09333bb40d239cb42c732df5ea16d17eeaeff5e6
2021-04-26 14:10:57 -04:00
Satyanvesh Dittakavi fe1268b082 SWDEV-281789 - Add missing HMM attributes on CUDA path
Change-Id: I11167eea006301e01a1f91708bf6d0ac832d8b7f
2021-04-26 13:54:01 -04:00
Yaxun (Sam) Liu bf6b451ae3 SWDEV-255234 - remove workaround for warpSize after clang fix is released
The workaround is no longer needed as the compiler emits the macro itself.

Change-Id: I6a06e73353628bcea71f6bd23503ab6d8e42a29d
2021-04-26 08:49:15 -04:00
German Andryeyev cba1544a8d SWDEV-244287 - enable direct dispatch by default
Change-Id: If506566624a218a2dd443b794c5c400bd0b9ebf7
2021-04-24 02:33:46 -04:00
DURGESH KROTTAPALLI b36936645d SWDEV-273550 - Add Directed Tests for HIP APIs
[dtest] Tests for hipMemcpy2DFromArray
        and hipMemcpy2DFromArrayAsync APIs

1. Negative scenarios for both the APIs
2. Functional size check scenarios for both APIs
3. Invoke the API from Peer Device Context
4. Simple scenarios for both APIs
5. Pinned Host Memory from same & multi GPU

Change-Id: I80c84ec3f9722d18683d31be65caa1bd64054da6
2021-04-23 13:07:08 -04:00
Sarbojit Sarkar f4d1444d4a SWDEV-282405 - Fix for rocFFT build issue
Change-Id: I39d1823ac6ea1d61610b9ff9153a6d0e91426fc8
2021-04-23 01:18:56 -04:00
Yaxun (Sam) Liu 6eabbc83f7 SWDEV-283048 - Fix hipTestFMA
This test is incorrect about _Float16 overloading. Need to keep the test
passing for both old and new compiler until the compiler change is in
mainline.

Change-Id: I2f9be8957282fd0579c74f1e9f23e65c4484f3a2
2021-04-22 15:07:16 -04:00
Rahul Garg f2c96993e1 SWDEV-229520 - Reenable hipEventIpc test
Change-Id: Ib40fb07a07cc447182e23664573c5e37a1194a32
2021-04-21 13:55:15 -04:00
Anusha GodavarthySurya 4de1bfafcc SWDEV-282361 - HIP support for NVRTC
Change-Id: I82869af8194b595f9a2fb64ad034630786189335
2021-04-20 09:28:58 -07:00
Anusha GodavarthySurya d86b4696ca SWDEV-240806 - [hip-graph] hip_memory and hip_kernel separate command creation from enqueue
hipMemcpy1D all variants, hipMemcpy3D, hipMemset, hipMemset3D and hipLaunchKernel

Change-Id: Ieeb767cf87aa0546bc3b3d5d2e01ab618e0d285c
2021-04-20 11:04:42 -04:00
Tao Sang 60e2b1299c SWDEV-279657 - Fix hipMallocManaged-N256M failure
Add concurrentManagedAccess detection in hipMallocManaged test.
Skip test when device doesn't support concurrentManagedAccess.

Change-Id: Ie54046feef3baba857a7068972ec1fc1a60c2dfd
2021-04-20 09:07:31 -04:00
sumanthtg 9c86e4a8f5 SWDEV-238517 - [dtest] Additional Tests for hipHostMalloc()
New Tests added for
 - hipHostMalloc() api.

SWDEV-238517 for enhancing hip unit tests

Change-Id: Id237ab6cd2445216cd7bd9b8189c22a36ad66b7c
2021-04-20 00:44:30 -04:00
Sourabh Betigeri 70af64121b SWDEV-256723 - Added group partitioning feature in ROCm CG.
Change-Id: Ie54046feef3baba857a7068972ec1fc0a60c2df9
2021-04-19 18:53:17 -04:00
German Andryeyev 9fc0bddbf0 SWDEV-278896 - Notify GPU about possible wait
Early notification allows CPU command state to be processed earlier.
Otherwise state update will be delayed until the actual possible
wait.

Change-Id: I0e9d6c2ad88e3723eab2f6dc9a20f288f6c1ca0c
2021-04-19 13:00:16 -04:00
DURGESH KROTTAPALLI 03a0c84ad4 SWDEV-273550 - Tests for hipMemcpyAtoH and HtoA
[dtest] Tests for hipMemcpyAtoH & hipMemcpyHtoA APIs

1. hipMemcpyAtoH/hipMemcpyHtoA negative scenarios
2. hipMemcpyAtoH/hipMemcpyHtoA Functional scenarios

Change-Id: Iec5b339db7fdde2592390c1f56ab6cf31131d4c8
2021-04-19 08:48:15 -04:00
Julia Jiang 171551ea8a SWDEV-270961 - Update hip_programming_guide.md for event handling
Change-Id: Ieadac9972e5ee13c05ccb42a679866f494f96f47
2021-04-16 12:14:25 -04:00
Maneesh Gupta e6aa972303 SWDEV-289147 - Update version dependencies of rocr and comgr packages
Change-Id: I435284298842d054d9b600e797bff391de2e5b1f
2021-04-16 00:57:38 -04:00
Satyanvesh Dittakavi b26ef8522e SWDEV-281504 - Rename structure names to use reserved names in HIP headers
HIP headers use few structure names as X, Y, and Z. This causes
compilation issues when the apps use similar names as macros.
Renamed the struct names to use reserved names such as
__X, __Y and __Z

Change-Id: I59416c3734f274e853c87d4856b7e616f6cee5f5
2021-04-15 09:52:58 -04:00
Sarbojit Sarkar 6b8ca9a503 SWDEV-261977 - Updated API to return runtime version
Change-Id: Id2373843c854c83ba06854dd05c61755d0264d8f
2021-04-15 07:17:36 -04:00