SWDEV-545245 - Fix hipDeviceGetTexture1DLinearMaxWidth declaration (#280)

The hipDeviceGetTexture1DLinearMaxWidth declaration is incorrect.  It
has the wrong arguments.  This commit fixes it.

[ROCm/hip commit: e74b05a7bd]
This commit is contained in:
Alves, Pedro
2025-08-04 11:05:03 +01:00
committed by GitHub
parent 72d3a25bd9
commit d4b6a4086d
+4 -1
View File
@@ -2245,13 +2245,16 @@ hipError_t hipGetDeviceProperties(hipDeviceProp_t* prop, int deviceId);
* limitations of the device.
*
* @param [out] max_width Maximum width, in elements, of 1D linear textures that the device can support
* @param [in] desc Requested channel format
* @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);
hipError_t hipDeviceGetTexture1DLinearMaxWidth(size_t* max_width,
const hipChannelFormatDesc* desc,
int device);
/**
* @brief Set L1/Shared cache partition.
*