Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXSWHTEC-224 - Test cases ID clean up and documentation for Memory Management, Vulkan Interop Memory Management and Peer-to-Peer access #97

Open
wants to merge 106 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
cea96af
SWDEV-355313 - Move catch tests and samples
gargrahul Oct 26, 2022
909e7e4
SWDEV-355313 - Add README
gargrahul Nov 7, 2022
094b9af
SWDEV-355313 - Update amd-staging branch
gargrahul Nov 28, 2022
070bb7c
EXSWHTEC-174 - Add Doxygen configuration and common header with group…
milos-mozetic Dec 1, 2022
9daa6d0
SWDEV-355313 - Update README
gargrahul Dec 2, 2022
2a205ed
EXSWHTEC-200 - Add support for TEMPLATE_TEST_CASE preprocessing
milos-mozetic Dec 5, 2022
c49043e
SWDEV-355313 - Update latest code
gargrahul Dec 6, 2022
b0848db
Create common code for 1D memcpy operations
music-dino Dec 7, 2022
dbaceb5
EXSWHTEC-74 - Implement tests for hipMemcpy and derivatives
music-dino Dec 7, 2022
18f9cb6
EXSWHTEC-83 - Implement new and reimplement existing tests for hipMem…
music-dino Dec 7, 2022
d9764b4
EXSWHTEC-80 - Reimplement tests for hipMemPrefetchAsync
music-dino Dec 7, 2022
eca94ae
EXSWHTEC-75 - Implement tests for hipMemcpyAsync and derivatives
music-dino Dec 7, 2022
82b5eae
EXSWHTEC-68 - Implement tests for hipMalloc and hipExtMallocWithFlags
music-dino Dec 7, 2022
a5e47ce
Create common code for vulkan interop tests
music-dino Dec 7, 2022
c854915
EXSWHTEC-149 - Implement tests for hipExternalMemoryGetMappedBuffer f…
music-dino Dec 7, 2022
98fdac0
EXSWHTEC-94 - Add resource guards and utils for 2D/3D allocations and…
nives-vukovic Dec 7, 2022
a4f4839
EXSWHTEC-150 - Implement tests for hipImportExternalMemory and hipDes…
music-dino Dec 7, 2022
198b0af
EXSWHTEC-146 - Implement tests for hipSignalExternalSemaphoresAsync f…
music-dino Dec 7, 2022
cc69363
EXSWHTEC-147 - Implement tests for hipWaitExternalSemaphoresAsync for…
music-dino Dec 7, 2022
838c56a
EXSWHTEC-148 - Implement tests for hipImportExternalSemaphore and hip…
music-dino Dec 7, 2022
595ead8
EXSWHTEC-91 - Implement tests for memcpy of 1D/2D hipArray
nives-vukovic Dec 7, 2022
d653844
EXSWHTEC-92 - Implement tests for async memcpy of 2D hipArray
nives-vukovic Dec 7, 2022
f51f27a
EXSWHTEC-72 - Implement hipMemcpyPeer/hipMemcpyPeerAsync and hipMemGe…
nives-vukovic Dec 7, 2022
82c2ef4
EXSWHTEC-92 - Revert changes made to hipMemcpy2DFromArray tests
nives-vukovic Dec 8, 2022
33d33df
Merge remote-tracking branch 'origin/develop' into hipMemcpyPeer_tests
nives-vukovic Dec 8, 2022
65dcbf8
Fix merging error
nives-vukovic Dec 8, 2022
12e34b9
Merge remote-tracking branch 'origin/develop' into utils
nives-vukovic Dec 9, 2022
15614ba
EXSWHTEC-94 - Extend stream guard and add guards for multiple events …
nives-vukovic Dec 9, 2022
38ae787
EXSWHTEC-76 - Implement additional tests for Malloc/Free API
nives-vukovic Dec 9, 2022
e0a691c
EXSWHTEC-76 - Change skip test macro
nives-vukovic Dec 9, 2022
c0380e4
EXSWHTEC-69 - Implement tests for hipMemRangeGetAttributes
mirza-halilcevic Dec 9, 2022
0dfccd7
EXSWHTEC-99 - Reimplement tests for hipStreamAttachMemAsync
mirza-halilcevic Dec 9, 2022
9ba5337
EXSWHTEC-97 - Implement tests for hipMemcpy2D APIs
mirza-halilcevic Dec 9, 2022
e746ec8
EXSWHTEC-102 - Implement tests for hipMemcpyParam2D APIs
mirza-halilcevic Dec 9, 2022
0f13e93
EXSWHTEC-98 - Implement tests for hipMemcpy3D APIs
mirza-halilcevic Dec 9, 2022
44d3774
EXSWHTEC-103 - Implement tests for hipDrvMemcpy3D APIs
mirza-halilcevic Dec 9, 2022
717f3e9
EXSWHTEC-97 - Disable failing tests on AMD.
mirza-halilcevic Dec 12, 2022
9d13938
EXSWHTEC-102 - Disable failing tests on AMD.
mirza-halilcevic Dec 13, 2022
8ee650e
EXSWHTEC-98 - Disable failing tests on AMD.
mirza-halilcevic Dec 13, 2022
2db594f
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 13, 2022
1977515
EXSWHTEC-200 - Resolve conflicts in missed conflicted files
milos-mozetic Dec 13, 2022
693e71e
Merge remote-tracking branch 'origin/develop' into hipArrays2DMemcpy_…
nives-vukovic Dec 13, 2022
d6ddfd7
Delete space created during develop merge
nives-vukovic Dec 13, 2022
3844b4c
EXSWHTEC-103 - Disable failing tests on AMD.
mirza-halilcevic Dec 13, 2022
af34da1
Merge remote-tracking branch 'origin/develop' into hipArrays2DMemcpyA…
nives-vukovic Dec 14, 2022
35e4582
Merge remote-tracking branch 'origin/develop' into hipMemcpyPeer_tests
nives-vukovic Dec 14, 2022
5ece7ee
Merge remote-tracking branch 'origin/develop' into hipMipmappedArray_…
nives-vukovic Dec 14, 2022
259be27
EXSWHTEC-200 - Add newline at the end of the file
milos-mozetic Dec 14, 2022
e0daf30
EXSWHTEC-200 - Extend the PREDEFINED list to define all macro names t…
milos-mozetic Dec 14, 2022
21dd6e1
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
d498e41
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
4810f2e
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
030ad91
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
6eca608
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
7882172
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
5bf56a9
EXSWHTEC-68 - Fix missed merge conflict
milos-mozetic Dec 16, 2022
1ef552a
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
eed4434
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
ea45249
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
209a784
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
a3bc72c
Merge remote-tracking branch 'upstream/develop' into hipMemRangeGetAt…
mirza-halilcevic Dec 18, 2022
fd3d833
Merge remote-tracking branch 'upstream/develop' into hipStreamAttachM…
mirza-halilcevic Dec 18, 2022
ebd578e
Merge remote-tracking branch 'upstream/develop' into hipMemcpy2D_tests
mirza-halilcevic Dec 18, 2022
2d61cf1
Remove merge conflict markers.
mirza-halilcevic Dec 18, 2022
5a5dc81
Fix copyright disclaimer.
mirza-halilcevic Dec 18, 2022
a3d691f
Fix copyright disclaimer.
mirza-halilcevic Dec 18, 2022
bbc8cff
Merge remote-tracking branch 'origin/hipMemcpy2D_tests' into hipMemcp…
mirza-halilcevic Dec 18, 2022
2218574
Add defect issue numbers.
mirza-halilcevic Dec 18, 2022
7656066
Merge remote-tracking branch 'upstream/develop' into hipMemcpy3D_tests
mirza-halilcevic Dec 18, 2022
9f3d37e
Fix copyright disclaimer.
mirza-halilcevic Dec 18, 2022
3715351
Merge remote-tracking branch 'origin/hipMemcpy3D_tests' into hipDrvMe…
mirza-halilcevic Dec 18, 2022
1359fc6
Add defect issue numbers.
mirza-halilcevic Dec 18, 2022
c338176
EXSWHTEC-100 - Miscellaneous modifications to existing memory tests
milos-mozetic Dec 23, 2022
77cb104
Merge branch 'hipMemcpy_tests' of github.com:mirza-halilcevic/hip-tes…
milos-mozetic Dec 23, 2022
2895100
Merge branch 'hipMemAdvise_tests' of github.com:mirza-halilcevic/hip-…
milos-mozetic Dec 23, 2022
82f26e9
Merge branch 'hipMemPrefetchAsync_tests' of github.com:mirza-halilcev…
milos-mozetic Dec 23, 2022
230a1e4
Merge branch 'hipMemcpyAsync_tests' of github.com:mirza-halilcevic/hi…
milos-mozetic Dec 23, 2022
3ed8d05
Merge branch 'hipMalloc_tests' of github.com:mirza-halilcevic/hip-tes…
milos-mozetic Dec 23, 2022
2ed75e6
Merge branch 'hipArrays2DMemcpyAsync_tests' of github.com:mirza-halil…
milos-mozetic Dec 23, 2022
3280085
Merge branch 'hipArrays2DMemcpy_tests' of github.com:mirza-halilcevic…
milos-mozetic Dec 23, 2022
2b15e41
Merge branch 'hipMipmappedArray_tests' of github.com:mirza-halilcevic…
milos-mozetic Dec 23, 2022
9380afc
Merge branch 'hipMemRangeGetAttribute_tests' of github.com:mirza-hali…
milos-mozetic Dec 23, 2022
f812b92
Merge branch 'hipStreamAttachMemAsync_tests' of github.com:mirza-hali…
milos-mozetic Dec 23, 2022
6806e6a
Merge branch 'hipMemcpy2D_tests' of github.com:mirza-halilcevic/hip-t…
milos-mozetic Dec 23, 2022
7c89317
Merge branch 'hipMemcpyParam2D_tests' of github.com:mirza-halilcevic/…
milos-mozetic Dec 23, 2022
6dc8dca
Merge branch 'hipMemcpy3D_tests' of github.com:mirza-halilcevic/hip-t…
milos-mozetic Dec 23, 2022
6677049
Merge branch 'hipDrvMemcpy3D_tests' of github.com:mirza-halilcevic/hi…
milos-mozetic Dec 23, 2022
a565c1e
Merge branch 'miscellaneous_test_fixes' of github.com:mirza-halilcevi…
milos-mozetic Dec 23, 2022
65c3de2
Merge branch 'hipExternalMemoryGetMappedBuffer_tests' of github.com:m…
milos-mozetic Dec 23, 2022
4dde9e3
Merge branch 'hipImportDestroyExternalMemory_tests' of github.com:mir…
milos-mozetic Dec 23, 2022
e5352a0
Merge branch 'hipSignalExternalSemaphoresAsync_tests' of github.com:m…
milos-mozetic Dec 23, 2022
327a639
Merge branch 'hipWaitExternalSemaphoresAsync_test' of github.com:mirz…
milos-mozetic Dec 23, 2022
6e2db34
Merge branch 'hipImportDestroyExternalSemaphore_tests' of github.com:…
milos-mozetic Dec 23, 2022
c6cf207
EXSWHTEC-224 - Test cases ID clean up and documentation for Memory Ma…
milos-mozetic Dec 28, 2022
1a4489d
EXSWHTEC-224 - Test cases ID clean up and documentation for Vulkan in…
milos-mozetic Dec 28, 2022
0e7cf75
Merge branch 'hipMemcpyPeer_tests' of github.com:mirza-halilcevic/hip…
milos-mozetic Dec 28, 2022
9d2506f
EXSWHTEC-224 - Test cases ID clean up and documentation for Peer to P…
milos-mozetic Dec 28, 2022
dc494f5
EXSWHTEC-224 - Add missing doxygen group for hipGetMipmappedArrayLevel
milos-mozetic Dec 29, 2022
c805959
EXSWHTEC-224 - Fix faulty group description for hipDeviceDisablePeerA…
milos-mozetic Dec 29, 2022
814ee25
EXSWHTEC-224 - Rename Multithread hipMemcy test regarding to naming c…
milos-mozetic Dec 30, 2022
151c938
EXSWHTEC-224 - Fix faulty named ref link for hipMemcpyHtoDAsync
milos-mozetic Dec 30, 2022
725ef25
EXSWHTEC-224 - Fix invalid references to the Unit_hipMemcpy_MultiThre…
milos-mozetic Dec 30, 2022
5818e92
EXSWHTEC-224 - Modify Doxygen configuration to sort test cases alphab…
milos-mozetic Dec 30, 2022
8b8a13e
EXSWHTEC-224 - Modify Doxygen configuration so that APIs within the m…
milos-mozetic Dec 30, 2022
e64c640
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Jun 22, 2023
c31d503
Merge remote-tracking branch 'origin/develop' into doxygen_memory_man…
mirza-halilcevic Feb 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions catch/DoxyfileTests
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ SORT_MEMBER_DOCS = YES
# this will also influence the order of the classes in the class list.
# The default value is: NO.

SORT_BRIEF_DOCS = NO
SORT_BRIEF_DOCS = YES

# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the
# (brief and detailed) documentation of class members so that constructors and
Expand All @@ -635,7 +635,7 @@ SORT_MEMBERS_CTORS_1ST = NO
# appear in their defined order.
# The default value is: NO.

SORT_GROUP_NAMES = NO
SORT_GROUP_NAMES = YES

# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by
# fully-qualified names, including namespaces. If set to NO, the class list will
Expand Down
210 changes: 209 additions & 1 deletion catch/include/hip_test_defgroups.hh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,214 @@ THE SOFTWARE.
* @}
*/

/**
* @defgroup MemoryTest Memory Management
* @{
* This section describes tests for the memory management functions of HIP runtime API.
*/

/**
* @addtogroup hipMemset hipMemset
* @{
* @ingroup MemoryTest
*/
/**
* Test Description
* ------------------------
* - Validates the case when zero value is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_hipMemset") {}

/**
* Test Description
* ------------------------
* - Validates the case when small size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_hipMemset") {}

/**
* Test Description
* ------------------------
* - Validates the case when zero size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_hipMemset") {}
/**
* End doxygen group hipMemset.
* @}
*/

/**
* @addtogroup hipMemsetD32 hipMemsetD32
* @{
* @ingroup MemoryTest
*/
/**
* Test Description
* ------------------------
* - Validates the case when zero value is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_hipMemsetD32") {}

/**
* Test Description
* ------------------------
* - Validates the case when small size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_hipMemsetD32") {}

/**
* Test Description
* ------------------------
* - Validates the case when zero size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_hipMemsetD32") {}
/**
* End doxygen group hipMemsetD32.
* @}
*/

/**
* @addtogroup hipMemsetD16 hipMemsetD16
* @{
* @ingroup MemoryTest
*/
/**
* Test Description
* ------------------------
* - Validates the case when zero value is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_hipMemsetD16") {}

/**
* Test Description
* ------------------------
* - Validates the case when small size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_hipMemsetD16") {}

/**
* Test Description
* ------------------------
* - Validates the case when zero size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_hipMemsetD16") {}
/**
* End doxygen group hipMemsetD16.
* @}
*/

/**
* @addtogroup hipMemsetD8 hipMemsetD8
* @{
* @ingroup MemoryTest
*/
/**
* Test Description
* ------------------------
* - Validates the case when zero value is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroValue_hipMemsetD8") {}

/**
* Test Description
* ------------------------
* - Validates the case when small size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_SmallSize_hipMemsetD8") {}

/**
* Test Description
* ------------------------
* - Validates the case when zero size is set.
* Test source
* ------------------------
* - unit/memory/hipMemsetFunctional.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipMemsetFunctional_ZeroSize_hipMemsetD8") {} /**
* End doxygen group hipMemsetD8.
* @}
*/

/**
* End doxygen group MemoryTest.
* @}
*/

/**
* @defgroup MemoryMTest Managed Memory
* @{
* This section describes tests for the managed memory management functions of HIP runtime API.
*/

/**
* @defgroup ShflTest warp shuffle function Management
* @{
Expand All @@ -154,7 +362,7 @@ THE SOFTWARE.
/**
* @defgroup StreamTest Stream Management
* @{
* This section describes the stream management types & functions of HIP runtime API.
*This section describes the stream management types& functions of HIP runtime API.
* @}
*/

Expand Down
2 changes: 1 addition & 1 deletion catch/include/memcpy1d_tests_common.hh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void MemcpyDeviceToDeviceShell(F memcpy_func, const hipStream_t kernel_stream =
HIP_CHECK(hipDeviceCanAccessPeer(&can_access_peer, src_device, dst_device));
if (!can_access_peer) {
INFO("Peer access cannot be enabled between devices " << src_device << " " << dst_device);
return;
REQUIRE(can_access_peer);
}
HIP_CHECK(hipDeviceEnablePeerAccess(dst_device, 0));
}
Expand Down
6 changes: 3 additions & 3 deletions catch/unit/device/hipDeviceEnableDisablePeerAccess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ TEST_CASE("Unit_hipDeviceEnablePeerAccess_negative") {
* @addtogroup hipDeviceDisablePeerAccess hipDeviceDisablePeerAccess
* @{
* @ingroup PeerToPeerTest
* hipDeviceDisablePeerAccess(int peerDeviceId)` -
* Disable direct access from current device's virtual address space
* to memory allocations physically located on a peer device.
* `hipDeviceDisablePeerAccess(int peerDeviceId)` -
* Disable direct access from current device's virtual address space to memory allocations
* physically located on a peer device.
* ________________________
* Test cases from other modules:
* - @ref Unit_hipDeviceEnableDisablePeerAccess_positive
Expand Down
5 changes: 3 additions & 2 deletions catch/unit/memory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ set(TEST_SRC
hipMemcpyPeer.cc
hipMemcpyPeer_old.cc
hipMemcpyPeerAsync.cc
hipMemcpyPeerAsync_old.cc
hipMemcpyWithStream_old.cc
hipMemcpyPeerAsync_old.cc
hipMemcpyWithStream.cc
hipMemcpyWithStreamMultiThread.cc
hipMemsetAsyncAndKernel.cc
Expand All @@ -132,11 +132,12 @@ set(TEST_SRC
hipHostMalloc.cc
hipMemcpy_old.cc
hipMemcpy_derivatives.cc
hipMemcpyAsync.cc
hipMemcpyAsync_old.cc
hipMemcpyAsync.cc
hipMemcpyAsync_derivatives.cc
hipMemsetFunctional.cc
hipMalloc.cc
hipExtMallocWithFlags.cc
hipMallocPitch.cc
hipMalloc3D.cc
hipMalloc3DArray.cc
Expand Down
Loading