/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/ROCR-Runtime/src/inc/hsa_ext_amd.h Source File#
hsa_ext_amd.h
Go to the documentation of this file.
767hsa_status_t HSA_API hsa_amd_signal_create(hsa_signal_value_t initial_value, uint32_t num_consumers,
1004hsa_status_t HSA_API hsa_amd_queue_cu_get_mask(const hsa_queue_t* queue, uint32_t num_cu_mask_count,
1453Both src and dst must be directly accessible to the copy_agent during the copy, src and dst rects
1455CPU agents are not supported. API requires SDMA and will return an error if SDMA is not available.
1829hsa_status_t HSA_API hsa_amd_memory_lock_to_pool(void* host_ptr, size_t size, hsa_agent_t* agents,
1946 uint32_t data[1];
2253hsa_status_t HSA_API hsa_amd_ipc_signal_create(hsa_signal_t signal, hsa_amd_ipc_signal_t* handle);
2383typedef hsa_status_t (*hsa_amd_system_event_callback_t)(const hsa_amd_event_t* event, void* data);
2400hsa_status_t HSA_API hsa_amd_register_system_event_handler(hsa_amd_system_event_callback_t callback,
3152hsa_status_t HSA_API hsa_amd_agent_set_async_scratch_limit(hsa_agent_t agent, size_t threshold);
uint8_t hsa_amd_packet_type8_t
A fixed-size type used to represent hsa_amd_packet_type_t constants.
Definition hsa_ext_amd.h:103
hsa_amd_packet_type_t
AMD vendor specific packet type.
Definition hsa_ext_amd.h:91
uint32_t hsa_signal_condition32_t
A fixed-size type used to represent ::hsa_signal_condition_t constants.
Definition hsa_ext_amd.h:86
hsa_status_t HSA_API hsa_amd_memory_migrate(const void *ptr, hsa_amd_memory_pool_t memory_pool, uint32_t flags)
Relocate a buffer to a new memory pool.
hsa_status_t HSA_API hsa_amd_register_system_event_handler(hsa_amd_system_event_callback_t callback, void *data)
Register AMD GPU event handler.
hsa_status_t HSA_API hsa_amd_agent_memory_pool_get_info(hsa_agent_t agent, hsa_amd_memory_pool_t memory_pool, hsa_amd_agent_memory_pool_info_t attribute, void *value)
Get the current value of an attribute of the relationship between an agent and a memory pool.
hsa_status_t HSA_API hsa_amd_register_deallocation_callback(void *ptr, hsa_amd_deallocation_callback_t callback, void *user_data)
Registers a deallocation notifier monitoring for release of agent accessible address ptr....
hsa_status_t hsa_amd_vmem_retain_alloc_handle(hsa_amd_vmem_alloc_handle_t *memory_handle, void *addr)
Returns memory handle for mapped memory.
hsa_status_t HSA_API hsa_amd_queue_set_priority(hsa_queue_t *queue, hsa_amd_queue_priority_t priority)
Modifies the dispatch and wavefront scheduling prioirty for a given compute queue....
hsa_status_t HSA_API hsa_amd_ipc_memory_attach(const hsa_amd_ipc_memory_t *handle, size_t len, uint32_t num_agents, const hsa_agent_t *mapping_agents, void **mapped_ptr)
Imports shared memory into the local process and makes it accessible by the given agents....
hsa_status_t HSA_API hsa_amd_interop_map_buffer(uint32_t num_agents, hsa_agent_t *agents, int interop_handle, uint32_t flags, size_t *size, void **ptr, size_t *metadata_size, const void **metadata)
Maps an interop object into the HSA flat address space and establishes memory residency....
hsa_status_t HSA_API hsa_amd_memory_async_copy(void *dst, hsa_agent_t dst_agent, const void *src, hsa_agent_t src_agent, size_t size, uint32_t num_dep_signals, const hsa_signal_t *dep_signals, hsa_signal_t completion_signal)
Asynchronously copy a block of memory from the location pointed to by src on the src_agent to the mem...
hsa_status_t hsa_amd_spm_acquire(hsa_agent_t preferred_agent)
Acquire Stream Performance Monitor on an agent.
@ HSA_AMD_SVM_GLOBAL_FLAG_COARSE_GRAINED
Definition hsa_ext_amd.h:2510
@ HSA_AMD_SVM_GLOBAL_FLAG_FINE_GRAINED
Definition hsa_ext_amd.h:2505
@ HSA_AMD_SVM_GLOBAL_FLAG_INDETERMINATE
Definition hsa_ext_amd.h:2520
hsa_status_t HSA_API hsa_amd_image_get_info_max_dim(hsa_agent_t agent, hsa_agent_info_t attribute, void *value)
Query image limits.
hsa_status_t HSA_API hsa_amd_signal_create(hsa_signal_value_t initial_value, uint32_t num_consumers, const hsa_agent_t *consumers, uint64_t attributes, hsa_signal_t *signal)
Create a signal with specific attributes.
@ HSA_AMD_REGION_INFO_HOST_ACCESSIBLE
Definition hsa_ext_amd.h:484
@ HSA_AMD_REGION_INFO_MAX_CLOCK_FREQUENCY
Definition hsa_ext_amd.h:498
hsa_status_t hsa_amd_vmem_get_access(void *va, hsa_access_permission_t *perms, hsa_agent_t agent_handle)
Get current access permissions for memory mapping.
hsa_status_t HSA_API hsa_amd_agent_set_async_scratch_limit(hsa_agent_t agent, size_t threshold)
Set the asynchronous scratch limit threshold on all the queues for this agent. Dispatches that are en...
hsa_status_t HSA_API hsa_amd_queue_cu_set_mask(const hsa_queue_t *queue, uint32_t num_cu_mask_count, const uint32_t *cu_mask)
Set a queue's CU affinity mask.
hsa_status_t hsa_amd_vmem_map(void *va, size_t size, size_t in_offset, hsa_amd_vmem_alloc_handle_t memory_handle, uint64_t flags)
Map a virtual memory handle.
hsa_amd_ipc_memory_t hsa_amd_ipc_signal_t
256-bit process independent identifier for a ROCr IPC signal.
Definition hsa_ext_amd.h:2227
@ HSA_STATUS_ERROR_INVALID_MEMORY_POOL
Definition hsa_ext_amd.h:197
@ HSA_STATUS_ERROR_ILLEGAL_INSTRUCTION
Definition hsa_ext_amd.h:207
@ HSA_STATUS_ERROR_MEMORY_APERTURE_VIOLATION
Definition hsa_ext_amd.h:202
hsa_status_t hsa_amd_vmem_handle_create(hsa_amd_memory_pool_t pool, size_t size, hsa_amd_memory_type_t type, uint64_t flags, hsa_amd_vmem_alloc_handle_t *memory_handle)
Create a virtual memory handle.
hsa_status_t hsa_amd_svm_attributes_get(void *ptr, size_t size, hsa_amd_svm_attribute_pair_t *attribute_list, size_t attribute_count)
Gets SVM memory attributes.
hsa_status_t HSA_API hsa_amd_memory_unlock(void *host_ptr)
Unpin the host pointer previously pinned via hsa_amd_memory_lock or hsa_amd_memory_lock_to_pool.
hsa_amd_memory_fault_reason_t
Flags denoting the cause of a memory fault.
Definition hsa_ext_amd.h:2295
@ HSA_AMD_MEMORY_FAULT_PAGE_NOT_PRESENT
Definition hsa_ext_amd.h:2297
hsa_status_t HSA_API hsa_amd_memory_lock_to_pool(void *host_ptr, size_t size, hsa_agent_t *agents, int num_agent, hsa_amd_memory_pool_t pool, uint32_t flags, void **agent_ptr)
Pin a host pointer allocated by C/C++ or OS allocator (i.e. ordinary system DRAM) and return a new po...
hsa_status_t hsa_amd_spm_release(hsa_agent_t preferred_agent)
Release Stream Performance Monitor on an agent.
hsa_status_t HSA_API hsa_amd_queue_cu_get_mask(const hsa_queue_t *queue, uint32_t num_cu_mask_count, uint32_t *cu_mask)
Retrieve a queue's CU affinity mask.
hsa_status_t HSA_API hsa_amd_pointer_info(const void *ptr, hsa_amd_pointer_info_t *info, void *(*alloc)(size_t), uint32_t *num_agents_accessible, hsa_agent_t **accessible)
Retrieves information about the allocation referenced by the given pointer. Optionally returns the nu...
hsa_status_t HSA_API hsa_amd_pointer_info_set_userdata(const void *ptr, void *userdata)
Associates an arbitrary pointer with an allocation known to ROCr. The pointer can be fetched by hsa_a...
hsa_status_t hsa_amd_spm_set_dest_buffer(hsa_agent_t preferred_agent, size_t size_in_bytes, uint32_t *timeout, uint32_t *size_copied, void *dest, bool *is_data_loss)
Set up the current destination user mode buffer for stream performance counter data....
hsa_status_t HSA_API hsa_amd_deregister_deallocation_callback(void *ptr, hsa_amd_deallocation_callback_t callback)
Removes a deallocation notifier previously registered with hsa_amd_register_deallocation_callback....
hsa_status_t hsa_amd_vmem_set_access(void *va, size_t size, const hsa_amd_memory_access_desc_t *desc, size_t desc_cnt)
Make a memory mapping accessible.
hsa_status_t HSA_API hsa_amd_memory_pool_allocate(hsa_amd_memory_pool_t memory_pool, size_t size, uint32_t flags, void **ptr)
Allocate a block of memory (or buffer) in the specified pool.
hsa_status_t HSA_API hsa_amd_coherency_set_type(hsa_agent_t agent, hsa_amd_coherency_type_t type)
Set the coherency type of the fine grain region of an agent. Deprecated. This is supported on KV plat...
hsa_status_t hsa_amd_vmem_import_shareable_handle(int dmabuf_fd, hsa_amd_vmem_alloc_handle_t *handle)
Import a shareable handle.
hsa_amd_signal_attribute_t
Signal attribute flags.
Definition hsa_ext_amd.h:716
hsa_status_t HSA_API hsa_amd_signal_async_handler(hsa_signal_t signal, hsa_signal_condition_t cond, hsa_signal_value_t value, hsa_amd_signal_handler handler, void *arg)
Register asynchronous signal handler function.
hsa_status_t hsa_amd_vmem_address_free(void *va, size_t size)
Free a reserved address range.
hsa_status_t hsa_amd_vmem_address_reserve_align(void **va, size_t size, uint64_t address, uint64_t alignment, uint64_t flags)
Allocate a reserved address range.
hsa_status_t HSA_API hsa_amd_agent_iterate_memory_pools(hsa_agent_t agent, hsa_status_t(*callback)(hsa_amd_memory_pool_t memory_pool, void *data), void *data)
Iterate over the memory pools associated with a given agent, and invoke an application-defined callba...
@ HSA_AMD_SVM_ATTRIB_AGENT_ACCESSIBLE
Definition hsa_ext_amd.h:2569
@ HSA_AMD_SVM_ATTRIB_PREFETCH_LOCATION
Definition hsa_ext_amd.h:2555
@ HSA_AMD_SVM_ATTRIB_MIGRATION_GRANULARITY
Definition hsa_ext_amd.h:2538
@ HSA_AMD_SVM_ATTRIB_PREFERRED_LOCATION
Definition hsa_ext_amd.h:2543
@ HSA_AMD_SVM_ATTRIB_AGENT_ACCESSIBLE_IN_PLACE
Definition hsa_ext_amd.h:2577
hsa_status_t HSA_API hsa_amd_async_function(void(*callback)(void *arg), void *arg)
Call a function asynchronously.
uint32_t HSA_API hsa_amd_signal_wait_any(uint32_t signal_count, hsa_signal_t *signals, hsa_signal_condition_t *conds, hsa_signal_value_t *values, uint64_t timeout_hint, hsa_wait_state_t wait_hint, hsa_signal_value_t *satisfying_value)
Wait for any signal-condition pair to be satisfied.
@ HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_EXTENDED_SCOPE_FINE_GRAINED
Definition hsa_ext_amd.h:1081
@ HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_KERNARG_INIT
Definition hsa_ext_amd.h:1065
@ HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_FINE_GRAINED
Definition hsa_ext_amd.h:1071
@ HSA_AMD_MEMORY_POOL_GLOBAL_FLAG_COARSE_GRAINED
Definition hsa_ext_amd.h:1075
@ HSA_AMD_AGENT_INFO_MEMORY_PROPERTIES
Definition hsa_ext_amd.h:433
@ HSA_AMD_AGENT_INFO_COOPERATIVE_QUEUES
Definition hsa_ext_amd.h:336
@ HSA_AMD_AGENT_INFO_MEMORY_MAX_FREQUENCY
Definition hsa_ext_amd.h:294
@ HSA_AMD_AGENT_INFO_TIMESTAMP_FREQUENCY
Definition hsa_ext_amd.h:379
@ HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT
Definition hsa_ext_amd.h:265
@ HSA_AMD_AGENT_INFO_NUM_SIMDS_PER_CU
Definition hsa_ext_amd.h:309
@ HSA_AMD_AGENT_INFO_SDMA_UCODE_VERSION
Definition hsa_ext_amd.h:394
@ HSA_AMD_AGENT_INFO_SVM_DIRECT_HOST_ACCESS
Definition hsa_ext_amd.h:360
@ HSA_AMD_AGENT_INFO_MAX_WAVES_PER_CU
Definition hsa_ext_amd.h:304
@ HSA_AMD_AGENT_INFO_COOPERATIVE_COMPUTE_UNIT_COUNT
Definition hsa_ext_amd.h:367
@ HSA_AMD_AGENT_INFO_NUM_SHADER_ENGINES
Definition hsa_ext_amd.h:314
@ HSA_AMD_AGENT_INFO_NUM_SDMA_XGMI_ENG
Definition hsa_ext_amd.h:407
@ HSA_AMD_AGENT_INFO_MAX_ADDRESS_WATCH_POINTS
Definition hsa_ext_amd.h:280
@ HSA_AMD_AGENT_INFO_MAX_CLOCK_FREQUENCY
Definition hsa_ext_amd.h:270
@ HSA_AMD_AGENT_INFO_NUM_SHADER_ARRAYS_PER_SE
Definition hsa_ext_amd.h:319
hsa_status_t HSA_API hsa_amd_profiling_set_profiler_enabled(hsa_queue_t *queue, int enable)
Enable or disable profiling capability of a queue.
hsa_status_t HSA_API hsa_amd_profiling_async_copy_enable(bool enable)
Enable or disable asynchronous memory copy profiling.
hsa_status_t HSA_API hsa_amd_image_create(hsa_agent_t agent, const hsa_ext_image_descriptor_t *image_descriptor, const hsa_amd_image_descriptor_t *image_layout, const void *image_data, hsa_access_permission_t access_permission, hsa_ext_image_t *image)
Creates an image from an opaque vendor specific image format. Does not modify data at image_data....
hsa_amd_memory_pool_info_t
Memory pool features.
Definition hsa_ext_amd.h:1099
@ HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_ALIGNMENT
Definition hsa_ext_amd.h:1145
@ HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_GRANULE
Definition hsa_ext_amd.h:1138
@ HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_REC_GRANULE
Definition hsa_ext_amd.h:1170
@ HSA_AMD_MEMORY_POOL_INFO_GLOBAL_FLAGS
Definition hsa_ext_amd.h:1113
@ HSA_AMD_MEMORY_POOL_INFO_RUNTIME_ALLOC_ALLOWED
Definition hsa_ext_amd.h:1125
@ HSA_AMD_MEMORY_POOL_INFO_ALLOC_MAX_SIZE
Definition hsa_ext_amd.h:1157
@ HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL
Definition hsa_ext_amd.h:1152
hsa_status_t HSA_API hsa_amd_ipc_signal_create(hsa_signal_t signal, hsa_amd_ipc_signal_t *handle)
Obtains an interprocess sharing handle for a signal. The handle is valid while the signal it referenc...
hsa_status_t HSA_API hsa_amd_memory_async_copy_rect(const hsa_pitched_ptr_t *dst, const hsa_dim3_t *dst_offset, const hsa_pitched_ptr_t *src, const hsa_dim3_t *src_offset, const hsa_dim3_t *range, hsa_agent_t copy_agent, hsa_amd_copy_direction_t dir, uint32_t num_dep_signals, const hsa_signal_t *dep_signals, hsa_signal_t completion_signal)
hsa_amd_coherency_type_t
Coherency attributes of fine grain region.
Definition hsa_ext_amd.h:504
hsa_status_t HSA_API hsa_amd_memory_pool_can_migrate(hsa_amd_memory_pool_t src_memory_pool, hsa_amd_memory_pool_t dst_memory_pool, bool *result)
Query if buffers currently located in some memory pool can be relocated to a destination memory pool.
hsa_status_t HSA_API hsa_amd_interop_unmap_buffer(void *ptr)
Removes a previously mapped interop object from HSA's flat address space. Ends lifetime for the mappi...
hsa_amd_memory_pool_access_t
Type of accesses to a memory pool from a given agent.
Definition hsa_ext_amd.h:1467
@ HSA_AMD_MEMORY_POOL_ACCESS_DISALLOWED_BY_DEFAULT
Definition hsa_ext_amd.h:1482
@ HSA_AMD_MEMORY_POOL_ACCESS_ALLOWED_BY_DEFAULT
Definition hsa_ext_amd.h:1476
@ HSA_AMD_MEMORY_POOL_ACCESS_NEVER_ALLOWED
Definition hsa_ext_amd.h:1471
hsa_status_t HSA_API hsa_amd_memory_pool_get_info(hsa_amd_memory_pool_t memory_pool, hsa_amd_memory_pool_info_t attribute, void *value)
Get the current value of an attribute of a memory pool.
hsa_status_t hsa_amd_portable_export_dmabuf(const void *ptr, size_t size, int *dmabuf, uint64_t *offset)
Obtains an OS specific, vendor neutral, handle to a memory allocation.
hsa_status_t HSA_API hsa_amd_ipc_memory_detach(void *mapped_ptr)
Decrements the reference count for the shared memory mapping and releases access to shared memory imp...
hsa_status_t hsa_amd_vmem_export_shareable_handle(int *dmabuf_fd, hsa_amd_vmem_alloc_handle_t handle, uint64_t flags)
Get an exportable shareable handle.
hsa_status_t hsa_amd_vmem_get_alloc_properties_from_handle(hsa_amd_vmem_alloc_handle_t memory_handle, hsa_amd_memory_pool_t *pool, hsa_amd_memory_type_t *type)
Returns the current allocation properties of a handle.
hsa_amd_hw_exception_reset_type_t
Flags denoting the type of a HW exception.
Definition hsa_ext_amd.h:2336
@ HSA_AMD_HW_EXCEPTION_RESET_TYPE_OTHER
Definition hsa_ext_amd.h:2338
hsa_amd_segment_t
Memory segments associated with a memory pool.
Definition hsa_ext_amd.h:1010
hsa_status_t hsa_amd_vmem_address_reserve(void **va, size_t size, uint64_t address, uint64_t flags)
Allocate a reserved address range.
hsa_amd_sdma_engine_id_t
SDMA engine IDs unique by single set bit position.
Definition hsa_ext_amd.h:452
hsa_status_t HSA_API hsa_amd_profiling_get_async_copy_time(hsa_signal_t signal, hsa_amd_profiling_async_copy_time_t *time)
Retrieve asynchronous copy timestamps.
hsa_status_t HSA_API hsa_amd_agents_allow_access(uint32_t num_agents, const hsa_agent_t *agents, const uint32_t *flags, const void *ptr)
Enable direct access to a buffer from a given set of agents.
hsa_status_t hsa_amd_vmem_unmap(void *va, size_t size)
Unmap a virtual memory handle.
hsa_status_t HSA_API hsa_amd_memory_copy_engine_status(hsa_agent_t dst_agent, hsa_agent_t src_agent, uint32_t *engine_ids_mask)
Reports the availability of SDMA copy engines.
hsa_amd_memory_pool_flag_t
Memory pool flag used to specify allocation directives.
Definition hsa_ext_amd.h:1177
@ HSA_AMD_MEMORY_POOL_CONTIGUOUS_FLAG
Definition hsa_ext_amd.h:1191
void(* hsa_amd_deallocation_callback_t)(void *ptr, void *user_data)
Deallocation notifier function type.
Definition hsa_ext_amd.h:2443
hsa_status_t hsa_amd_queue_get_info(hsa_queue_t *queue, hsa_queue_info_attribute_t attribute, void *value)
hsa_status_t HSA_API hsa_amd_memory_async_copy_on_engine(void *dst, hsa_agent_t dst_agent, const void *src, hsa_agent_t src_agent, size_t size, uint32_t num_dep_signals, const hsa_signal_t *dep_signals, hsa_signal_t completion_signal, hsa_amd_sdma_engine_id_t engine_id, bool force_copy_on_sdma)
Asynchronously copy a block of memory from the location pointed to by src on the src_agent to the mem...
hsa_amd_agent_memory_properties_t
Agent memory properties attributes.
Definition hsa_ext_amd.h:445
@ HSA_AMD_MEMORY_PROPERTY_AGENT_IS_APU
Definition hsa_ext_amd.h:446
hsa_amd_pointer_type_t
Denotes the type of memory in a pointer info query.
Definition hsa_ext_amd.h:1986
hsa_status_t HSA_API hsa_amd_memory_fill(void *ptr, uint32_t value, size_t count)
Sets the first count of uint32_t of the block of memory pointed by ptr to the specified value.
hsa_status_t HSA_API hsa_amd_profiling_get_dispatch_time(hsa_agent_t agent, hsa_signal_t signal, hsa_amd_profiling_dispatch_time_t *time)
Retrieve packet processing time stamps.
hsa_amd_agent_memory_pool_info_t
Properties of the relationship between an agent a memory pool.
Definition hsa_ext_amd.h:1570
@ HSA_AMD_AGENT_MEMORY_POOL_INFO_ACCESS
Definition hsa_ext_amd.h:1591
@ HSA_AMD_AGENT_MEMORY_POOL_INFO_LINK_INFO
Definition hsa_ext_amd.h:1608
@ HSA_AMD_AGENT_MEMORY_POOL_INFO_NUM_LINK_HOPS
Definition hsa_ext_amd.h:1600
hsa_status_t hsa_amd_portable_close_dmabuf(int dmabuf)
Closes an OS specific, vendor neutral, handle to a memory allocation.
hsa_status_t hsa_amd_svm_attributes_set(void *ptr, size_t size, hsa_amd_svm_attribute_pair_t *attribute_list, size_t attribute_count)
Sets SVM memory attributes.
hsa_amd_queue_priority_t
Per-queue dispatch and wavefront scheduling priority.
Definition hsa_ext_amd.h:2406
bool(* hsa_amd_signal_handler)(hsa_signal_value_t value, void *arg)
Asyncronous signal handler function type.
Definition hsa_ext_amd.h:826
hsa_status_t HSA_API hsa_amd_memory_pool_free(void *ptr)
Deallocate a block of memory previously allocated using hsa_amd_memory_pool_allocate.
hsa_status_t HSA_API hsa_amd_coherency_get_type(hsa_agent_t agent, hsa_amd_coherency_type_t *type)
Get the coherency type of the fine grain region of an agent.
hsa_amd_hw_exception_reset_cause_t
Flags denoting the cause of a HW exception.
Definition hsa_ext_amd.h:2344
@ HSA_AMD_HW_EXCEPTION_CAUSE_GPU_HANG
Definition hsa_ext_amd.h:2346
hsa_status_t HSA_API hsa_amd_memory_lock(void *host_ptr, size_t size, hsa_agent_t *agents, int num_agent, void **agent_ptr)
Pin a host pointer allocated by C/C++ or OS allocator (i.e. ordinary system DRAM) and return a new po...
hsa_status_t hsa_amd_svm_prefetch_async(void *ptr, size_t size, hsa_agent_t agent, uint32_t num_dep_signals, const hsa_signal_t *dep_signals, hsa_signal_t completion_signal)
Asynchronously migrates memory to an agent.
hsa_status_t HSA_API hsa_amd_ipc_memory_create(void *ptr, size_t len, hsa_amd_ipc_memory_t *handle)
Prepares an allocation for interprocess sharing and creates a handle of type hsa_amd_ipc_memory_t uni...
hsa_status_t(* hsa_amd_system_event_callback_t)(const hsa_amd_event_t *event, void *data)
Definition hsa_ext_amd.h:2383
hsa_status_t HSA_API hsa_amd_profiling_convert_tick_to_system_domain(hsa_agent_t agent, uint64_t agent_tick, uint64_t *system_tick)
Computes the frequency ratio and offset between the agent clock and HSA system clock and converts the...
hsa_status_t hsa_amd_vmem_handle_release(hsa_amd_vmem_alloc_handle_t memory_handle)
Release a virtual memory handle.
hsa_amd_link_info_type_t
Properties of the relationship between an agent a memory pool.
Definition hsa_ext_amd.h:1488
@ HSA_AMD_LINK_INFO_TYPE_HYPERTRANSPORT
Definition hsa_ext_amd.h:1492
hsa_status_t HSA_API hsa_amd_ipc_signal_attach(const hsa_amd_ipc_signal_t *handle, hsa_signal_t *signal)
Imports an IPC capable signal into the local process. If an IPC signal handle is attached multiple ti...
hsa_status_t hsa_amd_signal_value_pointer(hsa_signal_t signal, volatile hsa_signal_value_t **value_ptr)
Returns a pointer to the value of a signal.
AMD barrier value packet. Halts packet processing and waits for (signal_value & mask) cond value to b...
Definition hsa_ext_amd.h:131
hsa_amd_vendor_packet_header_t header
Definition hsa_ext_amd.h:135
hsa_signal_t completion_signal
Definition hsa_ext_amd.h:183
hsa_amd_gpu_hw_exception_info_t hw_exception
Definition hsa_ext_amd.h:2379
hsa_amd_gpu_memory_fault_info_t memory_fault
Definition hsa_ext_amd.h:2375
hsa_amd_hw_exception_reset_type_t reset_type
Definition hsa_ext_amd.h:2359
hsa_amd_hw_exception_reset_cause_t reset_cause
Definition hsa_ext_amd.h:2360
uint32_t fault_reason_mask
Definition hsa_ext_amd.h:2330
uint64_t virtual_address
Definition hsa_ext_amd.h:2325
Definition hsa_ext_amd.h:471
Encodes an opaque vendor specific image format. The length of data depends on the underlying format....
Definition hsa_ext_amd.h:1932
256-bit process independent identifier for a ROCr shared memory allocation.
Definition hsa_ext_amd.h:2133
Definition hsa_ext_amd.h:2995
hsa_access_permission_t permissions
Definition hsa_ext_amd.h:2996
Link properties when accessing the memory pool from the specified agent.
Definition hsa_ext_amd.h:1520
bool atomic_support_32bit
Definition hsa_ext_amd.h:1544
hsa_amd_link_info_type_t link_type
Definition hsa_ext_amd.h:1559
bool atomic_support_64bit
Definition hsa_ext_amd.h:1549
A memory pool encapsulates physical storage on an agent along with a memory access model.
Definition hsa_ext_amd.h:1052
Describes a memory allocation known to ROCr. Within a ROCr major version this structure can only grow...
Definition hsa_ext_amd.h:2017
Structure containing profiling async copy time information.
Definition hsa_ext_amd.h:579
Structure containing profiling dispatch time information.
Definition hsa_ext_amd.h:562
Definition hsa_ext_amd.h:2594
hsa_amd_packet_type8_t AmdFormat
Definition hsa_ext_amd.h:118
Struct containing an opaque handle to a memory allocation handle.
Definition hsa_ext_amd.h:2898
Definition hsa_ext_amd.h:1432