Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 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
7a213be
Create common code for module tests
music-dino Dec 7, 2022
580df9d
Create common code for module tests
music-dino Dec 7, 2022
f40fe6a
Merge branch 'module_common' into hipModuleLoad_tests
music-dino Dec 7, 2022
afa2e93
EXSWHTEC-109 - Implement tests for the hipModuleLoad family of APIs a…
music-dino Dec 7, 2022
4575966
EXSWHTEC-112 - Implement tests for hipModuleGetFunction
music-dino Dec 7, 2022
fb5ecb8
EXSWHTEC-111 - Implement tests for the hipModuleLaunchKernel family o…
music-dino Dec 7, 2022
0e719cb
EXSWHTEC-80 - Implement tests for hipModuleGetGlobal
music-dino Dec 7, 2022
7233aae
EXSWHTEC-113 - Implement tests for hipModuleGetTexRef
music-dino Dec 7, 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
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
26506e5
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
38254e2
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
58d7f00
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
e347b31
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
500b7b8
Merge branch 'develop' of github.com:mirza-halilcevic/hip-tests into …
milos-mozetic Dec 16, 2022
2003fb2
Merge branch 'hipModuleLoad_tests' of github.com:mirza-halilcevic/hip…
milos-mozetic Dec 16, 2022
5112096
Merge branch 'hipModuleGetFunction_tests' of github.com:mirza-halilce…
milos-mozetic Dec 16, 2022
7401c48
Merge branch 'hipModuleLaunchKernel_test' of github.com:mirza-halilce…
milos-mozetic Dec 16, 2022
5a44e86
Merge branch 'hipModuleGetTexRef_tests' of github.com:mirza-halilcevi…
milos-mozetic Dec 16, 2022
e61122f
Merge branch 'hipModuleGetGlobal_tests' of github.com:mirza-halilcevi…
milos-mozetic Dec 16, 2022
a7fd78b
EXSWHTEC-224 - Fix faulty resolved merge conflict
milos-mozetic Dec 16, 2022
b63acf0
EXSWHTEC-224 - Test cases ID clean up and documentation for Module Ma…
milos-mozetic Dec 19, 2022
05e34d3
Merge branch 'develop' into hipModuleLoad_tests
mangupta Mar 3, 2023
8686418
EXSWHTEC-109 - Disable build for Windows, add offload arch and output…
music-dino Mar 6, 2023
8390c65
Merge remote-tracking branch 'upstream/develop' into hipModuleLoad_tests
music-dino Apr 18, 2023
27ca3e2
EXSWHTEC-109 - Separate out negative tests that fail on AMD and disab…
music-dino Apr 18, 2023
77b2d58
EXSWHTEC-109 - Separate out negative tests for hipModuleUnload that f…
music-dino Apr 18, 2023
83e6499
Merge remote-tracking branch 'upstream/develop' into hipModuleGetGlob…
music-dino Apr 18, 2023
f092b57
EXSWHTEC-80 - Separate out tests that fail on AMD and disable them vi…
music-dino Apr 18, 2023
6358ee7
Merge remote-tracking branch 'upstream/develop' into hipModuleGetTexR…
music-dino Apr 18, 2023
cdc37a6
EXSWHTEC-113 - Separate out tests that fail on AMD and disable them v…
music-dino Apr 18, 2023
5af6b19
Merge branch 'develop' into doxygen_module_management_documentation
milos-mozetic Jun 22, 2023
015d7e4
Merge branch 'develop' into hipModuleLoad_tests
music-dino Jun 26, 2023
f80a7af
Merge branch 'develop' into hipModuleGetFunction_tests
music-dino Jun 26, 2023
bda9a89
Merge branch 'develop' into hipModuleLaunchKernel_test
music-dino Jun 26, 2023
b261ecf
Merge branch 'develop' into hipModuleLoad_tests
mangupta Jul 10, 2023
afdf15b
Update CMakeLists.txt
mangupta Jul 10, 2023
2fbb319
Update CMakeLists.txt
mangupta Jul 10, 2023
e1f2434
Update CMakeLists.txt
mangupta Jul 10, 2023
95b3d8c
Merge remote-tracking branch 'upstream/develop' into hipModuleLaunchK…
mirza-halilcevic Dec 28, 2023
2b4b804
Remove conflict marker.
mirza-halilcevic Dec 28, 2023
4e58bdc
Merge branch 'develop' into hipModuleGetFunction_tests
mirza-halilcevic Dec 28, 2023
a2c575b
Merge remote-tracking branch 'upstream/develop' into hipModuleLoad_tests
mirza-halilcevic Dec 28, 2023
8a7774f
Merge remote-tracking branch 'upstream/develop' into hipModuleGetGlob…
mirza-halilcevic Dec 28, 2023
2a481ba
Fix typo.
mirza-halilcevic Dec 28, 2023
f868f4b
Merge remote-tracking branch 'origin/develop' into hipModuleGetTexRef…
mirza-halilcevic Dec 28, 2023
73eedc2
Merge branch 'develop' into hipModuleLoad_tests
mirza-halilcevic Feb 18, 2024
4eb7814
Merge branch 'develop' into hipModuleGetFunction_tests
mirza-halilcevic Feb 18, 2024
a90b0b3
Merge branch 'develop' into hipModuleLaunchKernel_test
mirza-halilcevic Feb 18, 2024
dd315d4
Merge branch 'develop' into hipModuleGetGlobal_tests
mirza-halilcevic Feb 18, 2024
2c681b2
Merge branch 'develop' into hipModuleGetTexRef_tests
mirza-halilcevic Feb 18, 2024
cf96947
Merge remote-tracking branch 'origin/hipModuleGetFunction_tests' into…
mirza-halilcevic Feb 18, 2024
58acfe0
Merge remote-tracking branch 'origin/hipModuleLaunchKernel_test' into…
mirza-halilcevic Feb 18, 2024
8b5faf3
Merge remote-tracking branch 'origin/hipModuleGetGlobal_tests' into m…
mirza-halilcevic Feb 18, 2024
6cf67ec
Merge remote-tracking branch 'origin/hipModuleGetTexRef_tests' into m…
mirza-halilcevic Feb 18, 2024
4943554
Merge branch 'module_management_merged' into doxygen_module_managemen…
mirza-halilcevic Feb 18, 2024
0f2a549
Merge remote-tracking branch 'origin/develop' into doxygen_module_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
15 changes: 15 additions & 0 deletions catch/hipTestMain/config/config_amd_linux
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,21 @@
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - unsigned long long",
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - float",
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - double",
"Note: Test disabled due to defect - EXSWHTEC-151",
"Unit_hipModuleLoad_Negative_Load_From_A_File_That_Is_Not_A_Module",
"Note: Following two tests disabled due to defect - EXSWHTEC-153",
"Unit_hipModuleLoadData_Negative_Image_Is_An_Empty_String",
"Unit_hipModuleLoadDataEx_Negative_Image_Is_An_Empty_String",
"Note: Test disabled due to defect - EXSWHTEC-163",
"Unit_hipModuleGetGlobal_Negative_Hmod_Is_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-164",
"Unit_hipModuleGetGlobal_Negative_Name_Is_Empty_String",
"Note: Test disabled due to defect - EXSWHTEC-165",
"Unit_hipModuleGetGlobal_Negative_Dptr_And_Bytes_Are_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-166",
"Unit_hipModuleGetTexRef_Negative_Hmod_Is_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-167",
"Unit_hipModuleGetTexRef_Negative_Name_Is_Empty_String",
"=== SWDEV-439004: Below tests failing randomly in CQE staging ===",
"Unit_hipGLGetDevices_Positive_Basic",
"Unit_hipGLGetDevices_Positive_Parameters",
Expand Down
17 changes: 17 additions & 0 deletions catch/hipTestMain/config/config_amd_windows
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,23 @@
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - unsigned long long",
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - float",
"Unit_atomicExch_system_Positive_Host_And_Peer_GPUs - double",
"Note: Test disabled due to defect - EXSWHTEC-151",
"Unit_hipModuleLoad_Negative_Load_From_A_File_That_Is_Not_A_Module",
"Note: Test disabled due to defect - EXSWHTEC-152",
"Unit_hipModuleUnload_Negative_Module_Is_Nullptr",
"Note: Following two tests disabled due to defect - EXSWHTEC-153",
"Unit_hipModuleLoadData_Negative_Image_Is_An_Empty_String",
"Unit_hipModuleLoadDataEx_Negative_Image_Is_An_Empty_String",
"Note: Test disabled due to defect - EXSWHTEC-163",
"Unit_hipModuleGetGlobal_Negative_Hmod_Is_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-164",
"Unit_hipModuleGetGlobal_Negative_Name_Is_Empty_String",
"Note: Test disabled due to defect - EXSWHTEC-165",
"Unit_hipModuleGetGlobal_Negative_Dptr_And_Bytes_Are_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-166",
"Unit_hipModuleGetTexRef_Negative_Hmod_Is_Nullptr",
"Note: Test disabled due to defect - EXSWHTEC-167",
"Unit_hipModuleGetTexRef_Negative_Name_Is_Empty_String",
"=== SWDEV-435667: Below tests failing randomly in stress test on 08/12/23 ===",
"Unit_hipMemPoolSetAccess_Negative_Parameters",
"Unit_hipMallocMipmappedArray_Negative_Parameters",
Expand Down
7 changes: 7 additions & 0 deletions catch/include/hip_test_defgroups.hh
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ THE SOFTWARE.
* @}
*/

/**
* @defgroup ModuleTest Module Management
* @{
* This section describes tests for the module management functions of HIP runtime API.
* @}
*/

/**
* @defgroup ShflTest warp shuffle function Management
* @{
Expand Down
2 changes: 1 addition & 1 deletion catch/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ add_subdirectory(compiler)
add_subdirectory(errorHandling)
add_subdirectory(cooperativeGrps)
add_subdirectory(context)
add_subdirectory(module)
add_subdirectory(device_memory)
add_subdirectory(warp)
add_subdirectory(dynamicLoading)
add_subdirectory(g++)
add_subdirectory(module)
add_subdirectory(channelDescriptor)
add_subdirectory(executionControl)
add_subdirectory(vector_types)
Expand Down
2 changes: 1 addition & 1 deletion catch/unit/module/get_tex_ref_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ THE SOFTWARE.

texture<float, 2> tex;

#endif // CUDA_VERSION < CUDA_12000
#endif // CUDA_VERSION < CUDA_12000
112 changes: 112 additions & 0 deletions catch/unit/module/hipExtModuleLaunchKernel.cc
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,41 @@ TEST_CASE("Unit_hipExtModuleLaunchKernel_UniformWorkGroup") {
HIP_CHECK(hipModuleUnload(Module));
}

/**
* @addtogroup hipExtModuleLaunchKernel hipExtModuleLaunchKernel
* @{
* @ingroup ModuleTest
* `hipExtModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
* uint32_t globalWorkSizeY, uint32_t globalWorkSizeZ,
* uint32_t localWorkSizeX, uint32_t localWorkSizeY,
* uint32_t localWorkSizeZ, size_t sharedMemBytes,
* hipStream_t hStream, void** kernelParams, void** extra,
* hipEvent_t startEvent = nullptr,
* hipEvent_t stopEvent = nullptr, uint32_t flags = 0)` -
* Launches kernel with parameters and shared memory on stream with arguments passed
* to kernel params or extra arguments.
*/

/**
* Test Description
* ------------------------
* - Launch kernels in different basic scenarios:
* -# When kernel is launched with no arguments
* - Expected output: return `hipSuccess`
* -# When kernel is launched with arguments using `kernelParams`
* - Expected output: return `hipSuccess`
* -# When kernel is launched with arguments using `extra`
* - Expected output: return `hipSuccess`
* -# When kernel is launched as timed and with events
* - Expected output: return `hipSuccess`
* Test source
* ------------------------
* - unit/module/hipExtModuleLaunchKernel.cc
* Test requirements
* ------------------------
* - Platform specific (AMD)
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Basic") {
ModuleLaunchKernelPositiveBasic<hipExtModuleLaunchKernel>();

Expand All @@ -258,6 +293,33 @@ TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Basic") {
}
}

/**
* Test Description
* ------------------------
* - Launches kernel with different valid arguments:
* -# When gridDimX == maxGridDimX
* - Expected output: return `hipSuccess`
* -# When gridDimY == maxGridDimY
* - Expected output: return `hipSuccess`
* -# When gridDimZ == maxGridDimZ
* - Expected output: return `hipSuccess`
* -# When blockDimX == maxBlockDimX
* - Expected output: return `hipSuccess`
* -# When blockDimY == maxBlockDimY
* - Expected output: return `hipSuccess`
* -# When blockDimZ == maxBlockDimZ
* - Expected output: return `hipSuccess`
* -# When only start event is passed
* - Expected output: return `hipSucccess`
* -# When only stop event is passed
* - Expected output: return `hipSuccess`
* Test source
* ------------------------
* - unit/module/hipExtModuleLaunchKernel.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Parameters") {
ModuleLaunchKernelPositiveParameters<hipExtModuleLaunchKernel>();

Expand All @@ -282,6 +344,56 @@ TEST_CASE("Unit_hipExtModuleLaunchKernel_Positive_Parameters") {
}
}

/**
* Test Description
* ------------------------
* - Validates handling of invalid arguments:
* -# When pointer to the kernel function is `nullptr`
* - Expected output: return `hipErrorInvalidResourceHandle`
* -# When gridDimX == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When gridDimY == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When gridDimZ == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimX == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimY == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimZ == 0
* - Expected output: return `hipErrorInvalidValue`
* -# When gridDimX > maxGridDimX
* - Disabled on AMD because is returns `hipSuccess`
* - Expected output: return `hipErrorInvalidValue`
* -# When gridDimY > maxGridDimY
* - Disabled on AMD because is returns `hipSuccess`
* - Expected output: return `hipErrorInvalidValue`
* -# When gridDimZ > maxGridDimZ
* - Disabled on AMD because is returns `hipSuccess`
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimX > maxBlockDimX
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimY > maxBlockDimY
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimZ > maxBlockDimZ
* - Expected output: return `hipErrorInvalidValue`
* -# When blockDimX * blockDimY * blockDimZ > MaxThreadsPerBlock
* - Expected output: return `hipErrorInvalidValue`
* -# When sharedMemBytes > max shared memory per block
* - Expected output: return `hipErrorInvalidValue`
* -# When stream is not valid, e.g., it is destroyed before kernel launch
* - Expected output: return `hipErrorInvalidValue`
* -# When passing kernelArgs and extra simultaneously
* - Expected output: return `hipErrorInvalidValue`
* -# When extra is not valid
* - Expected output: return `hipErrorInvalidValue`
* Test source
* ------------------------
* - unit/module/hipExtModuleLaunchKernel.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipExtModuleLaunchKernel_Negative_Parameters") {
ModuleLaunchKernelNegativeParameters<hipExtModuleLaunchKernel>();
}
45 changes: 44 additions & 1 deletion catch/unit/module/hipModuleGetFunction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,61 @@ THE SOFTWARE.
#include <hip_test_common.hh>
#include <hip/hip_runtime_api.h>

/**
* @addtogroup hipModuleGetFunction hipModuleGetFunction
* @{
* @ingroup ModuleTest
* `hipModuleGetFunction(hipFunction_t* function, hipModule_t module, const char* kname)` -
* Function with kname will be extracted if present in module.
*/

static hipModule_t GetModule() {
HIP_CHECK(hipFree(nullptr));
static const auto mg = ModuleGuard::LoadModule("get_function_module.code");
return mg.module();
}

/**
* Test Description
* ------------------------
* - Get function from the loaded module.
* - Checks that the function is not `nullptr`.
* Test source
* ------------------------
* - unit/module/hipModuleGetFunction.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipModuleGetFunction_Positive_Basic") {
hipFunction_t kernel = nullptr;
HIP_CHECK(hipModuleGetFunction(&kernel, GetModule(), "GlobalKernel"));
REQUIRE(kernel != nullptr);
}

/**
* Test Description
* ------------------------
* - Verifies handling of invalid arguments:
* -# When output pointer to the function is `nullptr`
* - Expected output: return `hipErrorInvalidValue`
* -# When module pointer is `nullptr`
* - Expected output: return `hipErrorInvalidValue`
* -# When the function name is `nullptr`
* - Expected output: return `hipErrorInvalidValue`
* -# When the function name is an empty string
* - Expected output: return `hipErrorInvalidValue`
* -# When the function name is not existing function
* - Expected output: return `hipErrorNotFound`
* -# When the function name is __device__ function
* - Expected output: return `hipErrorNotFound`
* Test source
* ------------------------
* - unit/module/hipModuleGetFunction.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipModuleGetFunction_Negative_Parameters") {
hipFunction_t kernel = nullptr;

Expand Down Expand Up @@ -71,4 +114,4 @@ TEST_CASE("Unit_hipModuleGetFunction_Negative_Parameters") {
SECTION("kname == __device__ kernel") {
HIP_CHECK_ERROR(hipModuleGetFunction(&kernel, GetModule(), "DeviceKernel"), hipErrorNotFound);
}
}
}
64 changes: 63 additions & 1 deletion catch/unit/module/hipModuleGetGlobal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ THE SOFTWARE.
#include "hip_module_common.hh"
#include "hipModuleGetGlobal.hh"

/**
* @addtogroup hipModuleGetGlobal hipModuleGetGlobal
* @{
* @ingroup ModuleTest
* `hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes,
* hipModule_t hmod, const char* name)` -
* Returns a global pointer from a module.
* Returns in *dptr and *bytes the pointer and size of the global of name name located in module hmod.
*/

template <typename T, size_t N>
static void HipModuleGetGlobalTest(hipModule_t module, const std::string global_name) {
constexpr auto size = N * sizeof(T);
Expand Down Expand Up @@ -82,6 +92,22 @@ static inline hipModule_t GetModule() {
return mg.module();
}

/**
* Test Description
* ------------------------
* - Validates that the API returns correct size and a usable
* pointer to the requested symbol that can be array or scalar:
* -# int
* -# float
* -# char
* -# double
* Test source
* ------------------------
* - unit/module/hipModuleGetGlobal.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipModuleGetGlobal_Positive_Basic") {
hipModule_t module = GetModule();

Expand All @@ -94,6 +120,21 @@ TEST_CASE("Unit_hipModuleGetGlobal_Positive_Basic") {
SECTION("double") { HIP_MODULE_GET_GLOBAL_TEST(double, module); }
}

/**
* Test Description
* ------------------------
* - Validates positive handling of `nullptr` arguments:
* -# When the device pointer is `nullptr`
* - Expected output: return `hipSuccess`
* -# When the bytes pointer is `nullptr`
* - Expected output: return `hipSuccess`
* Test source
* ------------------------
* - unit/module/hipModuleGetGlobal.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipModuleGetGlobal_Positive_Parameters") {
hipModule_t module = GetModule();
hipDeviceptr_t global = 0;
Expand All @@ -108,6 +149,27 @@ TEST_CASE("Unit_hipModuleGetGlobal_Positive_Parameters") {
}
}

/**
* Test Description
* ------------------------
* - Validates handling of invalid arguments:
* -# When device pointer and bytes pointer are `nullptr`
* - Expected output: return `hipErrorInvalidValue`
* -# When module pointer is `nullptr`
* - Expected output: return `hipErrorInvalidResourceHandle`
* -# When module name pointer is `nullptr`
* - Expected output: return `hipErrorInvalidValue`
* -# When module name is an empty string
* - Expected output: return `hipErrorInvalidValue`
* -# When module name is for module that does not exist
* - Expected output: return `hipErrorNotFound`
* Test source
* ------------------------
* - unit/module/hipModuleGetGlobal.cc
* Test requirements
* ------------------------
* - HIP_VERSION >= 5.2
*/
TEST_CASE("Unit_hipModuleGetGlobal_Negative_Parameters") {
hipModule_t module = GetModule();
hipDeviceptr_t global = 0;
Expand Down Expand Up @@ -142,4 +204,4 @@ TEST_CASE("Unit_hipModuleGetGlobal_Negative_Name_Is_Empty_String") {
TEST_CASE("Unit_hipModuleGetGlobal_Negative_Dptr_And_Bytes_Are_Nullptr") {
hipModule_t module = GetModule();
HIP_CHECK_ERROR(hipModuleGetGlobal(nullptr, nullptr, module, "int_var"), hipErrorInvalidValue);
}
}
Loading