EXSWHTEC-224 - Test cases ID clean up and documentation for Initialization&Version (#83)
- Test cases ID clean up and documentation for Initialization and Version
[ROCm/hip-tests commit: 1af95c5a2a]
This commit is contained in:
@@ -214,6 +214,35 @@ TEST_CASE("Unit_hipSetGetDevice_Negative") {
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @addtogroup hipDeviceGet hipDeviceGet
|
||||
* @{
|
||||
* @ingroup DriverTest
|
||||
* `hipDeviceGet(hipDevice_t* device, int ordinal)` -
|
||||
* Returns a handle to a compute device.
|
||||
* ________________________
|
||||
* Test cases from other modules:
|
||||
* - @ref Unit_hipSetDevice_BasicSetGet
|
||||
* - @ref Unit_hipGetSetDevice_MultiThreaded
|
||||
*/
|
||||
|
||||
/**
|
||||
* Test Description
|
||||
* ------------------------
|
||||
* - Validates handling of invalid arguments:
|
||||
* -# When output pointer to the device is `nullptr`
|
||||
* - Expected output: return `hipErrorInvalidValue`
|
||||
* -# When device ordinal is out of bounds
|
||||
* - Expected output: return `hipErrorInvalidDevice`
|
||||
* -# When device ordinal is negative
|
||||
* - Expected output: return `hipErrorInvalidDevice`
|
||||
* Test source
|
||||
* ------------------------
|
||||
* - unit/device/hipSetGetDevice.cc
|
||||
* Test requirements
|
||||
* ------------------------
|
||||
* - HIP_VERSION >= 5.2
|
||||
*/
|
||||
TEST_CASE("Unit_hipDeviceGet_Negative") {
|
||||
// TODO enable after EXSWCPHIPT-104 is fixed
|
||||
#if HT_NVIDIA
|
||||
|
||||
Reference in New Issue
Block a user