hipkernelsetattributefordevice Interface Reference

hipkernelsetattributefordevice Interface Reference#

hipFORT API Reference: hipfort::hipkernelsetattributefordevice Interface Reference
hipfort::hipkernelsetattributefordevice Interface Reference

Set a device-wide attribute for a kernel on a specific device. More...

Public Member Functions

integer(c_int) function hipkernelsetattributefordevice_ (kernel, attr, myvalue, device)
 

Detailed Description

Set a device-wide attribute for a kernel on a specific device.

Sets attr for kernel on device without requiring device to be current. Supported attributes are hipFuncAttributeMaxDynamicSharedMemorySize, hipFuncAttributePreferredSharedMemoryCarveout, hipFuncAttributeRequiredClusterWidth, hipFuncAttributeRequiredClusterHeight, hipFuncAttributeRequiredClusterDepth, hipFuncAttributeNonPortableClusterSizeAllowed, and hipFuncAttributeClusterSchedulingPolicyPreference.

Attributes set with hipFuncSetAttribute override values set by this function for the corresponding device, regardless of call order.

Note
On AMD devices, non-portable cluster size and cluster scheduling policy are stored for readback but may not affect dispatch.
Parameters
[in]kernelKernel to set the attribute for
[in]attrAttribute to set
[in]valueValue to set
[in]deviceDevice ordinal on which to set the attribute
Returns
hipSuccess, hipErrorInvalidResourceHandle, hipErrorInvalidValue, hipErrorInvalidDevice, hipErrorInvalidDeviceFunction

Member Function/Subroutine Documentation

◆ hipkernelsetattributefordevice_()

integer(c_int) function hipfort::hipkernelsetattributefordevice::hipkernelsetattributefordevice_ ( type(c_ptr), value  kernel,
integer(c_int), value  attr,
integer(c_int), value  myvalue,
integer(c_int), value  device 
)

The documentation for this interface was generated from the following file: