SWDEV-477218 - Adding hipDeviceGetTexture1DLinearMaxWidth to the hip api header

Change-Id: Idf6ef70b20eb50f74fa51e486ff0fd44089814c3


[ROCm/hip commit: 656bc133f2]
This commit is contained in:
victzhan
2024-11-04 11:12:36 -05:00
committed by Julia Jiang
vanhempi 33be5eb841
commit 325dd5a36a
@@ -2121,6 +2121,21 @@ hipError_t hipDeviceGetMemPool(hipMemPool_t* mem_pool, int device);
* Populates hipGetDeviceProperties with information for the specified device.
*/
hipError_t hipGetDeviceProperties(hipDeviceProp_t* prop, int deviceId);
/**
* @brief Gets the maximum width for 1D linear textures on the specified device
*
* This function queries the maximum width, in elements, of 1D linear textures that can be allocated
* on the specified device. The maximum width depends on the texture element size and the hardware
* limitations of the device.
*
* @param [out] max_width Maximum width, in elements, of 1D linear textures that the device can support
* @param [in] device Device index to query for maximum 1D texture width
*
* @returns #hipSuccess, #hipErrorInvalidValue, #hipErrorInvalidDevice
*
* @see hipDeviceGetAttribute, hipMalloc, hipTexRefSetAddressMode
*/
hipError_t hipDeviceGetTexture1DLinearMaxWidth(hipMemPool_t* mem_pool, int device);
/**
* @brief Set L1/Shared cache partition.
*