clang 23.0.0git
enqcmdintrin.h File Reference

Go to the source code of this file.

Macros

#define _DEFAULT_FN_ATTRS    __attribute__((__always_inline__, __nodebug__, __target__("enqcmd")))

Functions

static __inline__ int _DEFAULT_FN_ATTRS _enqcmd (void *__dst, const void *__src)
 Reads 64-byte command pointed by __src, formats 64-byte enqueue store data, and performs 64-byte enqueue store to memory pointed by __dst.
static __inline__ int _DEFAULT_FN_ATTRS _enqcmds (void *__dst, const void *__src)
 Reads 64-byte command pointed by __src, formats 64-byte enqueue store data, and performs 64-byte enqueue store to memory pointed by __dst This intrinsic may only be used in Privileged mode.

Macro Definition Documentation

◆ _DEFAULT_FN_ATTRS

#define _DEFAULT_FN_ATTRS    __attribute__((__always_inline__, __nodebug__, __target__("enqcmd")))

Definition at line 18 of file enqcmdintrin.h.

Referenced by __DO_LANE_SUM(), __gpu_ballot(), __gpu_ballot(), __gpu_ballot(), __gpu_block_id(), __gpu_block_id_x(), __gpu_block_id_x(), __gpu_block_id_x(), __gpu_block_id_y(), __gpu_block_id_y(), __gpu_block_id_y(), __gpu_block_id_z(), __gpu_block_id_z(), __gpu_block_id_z(), __gpu_exit(), __gpu_exit(), __gpu_exit(), __gpu_is_ptr_local(), __gpu_is_ptr_local(), __gpu_is_ptr_local(), __gpu_is_ptr_private(), __gpu_is_ptr_private(), __gpu_is_ptr_private(), __gpu_lane_id(), __gpu_lane_id(), __gpu_lane_id(), __gpu_lane_mask(), __gpu_lane_mask(), __gpu_lane_mask(), __gpu_num_blocks(), __gpu_num_blocks_x(), __gpu_num_blocks_x(), __gpu_num_blocks_x(), __gpu_num_blocks_y(), __gpu_num_blocks_y(), __gpu_num_blocks_y(), __gpu_num_blocks_z(), __gpu_num_blocks_z(), __gpu_num_blocks_z(), __gpu_num_lanes(), __gpu_num_lanes(), __gpu_num_lanes(), __gpu_num_threads(), __gpu_num_threads_x(), __gpu_num_threads_x(), __gpu_num_threads_x(), __gpu_num_threads_y(), __gpu_num_threads_y(), __gpu_num_threads_y(), __gpu_num_threads_z(), __gpu_num_threads_z(), __gpu_num_threads_z(), __gpu_sync_lane(), __gpu_sync_lane(), __gpu_sync_lane(), __gpu_sync_threads(), __gpu_sync_threads(), __gpu_sync_threads(), __gpu_thread_id(), __gpu_thread_id_x(), __gpu_thread_id_x(), __gpu_thread_id_x(), __gpu_thread_id_y(), __gpu_thread_id_y(), __gpu_thread_id_y(), __gpu_thread_id_z(), __gpu_thread_id_z(), __gpu_thread_id_z(), __gpu_thread_suspend(), __gpu_thread_suspend(), __gpu_thread_suspend(), and _Pragma().

Function Documentation

◆ _enqcmd()

__inline__ int _DEFAULT_FN_ATTRS _enqcmd ( void * __dst,
const void * __src )
static

Reads 64-byte command pointed by __src, formats 64-byte enqueue store data, and performs 64-byte enqueue store to memory pointed by __dst.

This intrinsics may only be used in User mode.

This intrinsics corresponds to the ENQCMD instruction.

Parameters
__dstPointer to the destination of the enqueue store.
__srcPointer to 64-byte command data.
Returns
If the command data is successfully written to __dst then 0 is returned. Otherwise 1 is returned.

Definition at line 36 of file enqcmdintrin.h.

References __src.

◆ _enqcmds()

__inline__ int _DEFAULT_FN_ATTRS _enqcmds ( void * __dst,
const void * __src )
static

Reads 64-byte command pointed by __src, formats 64-byte enqueue store data, and performs 64-byte enqueue store to memory pointed by __dst This intrinsic may only be used in Privileged mode.

This intrinsics corresponds to the ENQCMDS instruction.

Parameters
__dstPointer to the destination of the enqueue store.
__srcPointer to 64-byte command data.
Returns
If the command data is successfully written to __dst then 0 is returned. Otherwise 1 is returned.

Definition at line 56 of file enqcmdintrin.h.

References __src.