A high-performance general-purpose compute library

Gets the information about device and platform as strings. More...

Functions

void deviceprop (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings.
 
void deviceInfo (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings.
 
af_err af_device_info (char *d_name, char *d_platform, char *d_toolkit, char *d_compute)
 Gets the information about device and platform as strings.
 

Detailed Description

Gets the information about device and platform as strings.

Parameters
d_namepointer to a user-allocated char array. Recommended minimum size is 64. The name of the device is stored in this array.
d_platformpointer to a user-allocated char array. Recommended minimum size is 10. The platform information is stored in this array.
d_toolkitpointer to a user-allocated char array. Recommended minimum size is 64. The toolkit information is stored in this array.
d_computepointer to a user-allocated char array. Recommended minimum size is 10. The compute version of the device is stored in this array.

Function Documentation

◆ af_device_info()

af_err af_device_info ( char * d_name,
char * d_platform,
char * d_toolkit,
char * d_compute )

Gets the information about device and platform as strings.

Parameters
d_namepointer to a user-allocated char array. Recommended minimum size is 64. The name of the device is stored in this array.
d_platformpointer to a user-allocated char array. Recommended minimum size is 10. The platform information is stored in this array.
d_toolkitpointer to a user-allocated char array. Recommended minimum size is 64. The toolkit information is stored in this array.
d_computepointer to a user-allocated char array. Recommended minimum size is 10. The compute version of the device is stored in this array.

◆ deviceInfo()

void deviceInfo ( char * d_name,
char * d_platform,
char * d_toolkit,
char * d_compute )

Gets the information about device and platform as strings.

Parameters
d_namepointer to a user-allocated char array. Recommended minimum size is 64. The name of the device is stored in this array.
d_platformpointer to a user-allocated char array. Recommended minimum size is 10. The platform information is stored in this array.
d_toolkitpointer to a user-allocated char array. Recommended minimum size is 64. The toolkit information is stored in this array.
d_computepointer to a user-allocated char array. Recommended minimum size is 10. The compute version of the device is stored in this array.

◆ deviceprop()

void deviceprop ( char * d_name,
char * d_platform,
char * d_toolkit,
char * d_compute )

Gets the information about device and platform as strings.

Parameters
d_namepointer to a user-allocated char array. Recommended minimum size is 64. The name of the device is stored in this array.
d_platformpointer to a user-allocated char array. Recommended minimum size is 10. The platform information is stored in this array.
d_toolkitpointer to a user-allocated char array. Recommended minimum size is 64. The toolkit information is stored in this array.
d_computepointer to a user-allocated char array. Recommended minimum size is 10. The compute version of the device is stored in this array.

Deprecated
Use deviceInfo instead