|
hsa_status_t HSA_API | hsa_status_string (hsa_status_t status, const char **status_string) |
| Query additional information about a status code.
|
|
hsa_status_t HSA_API | hsa_init () |
| Initialize the HSA runtime.
|
|
hsa_status_t HSA_API | hsa_shut_down () |
| Shut down the HSA runtime.
|
|
hsa_status_t HSA_API | hsa_system_get_info (hsa_system_info_t attribute, void *value) |
| Get the current value of a system attribute.
|
|
hsa_status_t HSA_API | hsa_extension_get_name (uint16_t extension, const char **name) |
| Query the name of a given extension.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_system_extension_supported (uint16_t extension, uint16_t version_major, uint16_t version_minor, bool *result) |
| Query if a given version of an extension is supported by the HSA implementation.
|
|
hsa_status_t HSA_API | hsa_system_major_extension_supported (uint16_t extension, uint16_t version_major, uint16_t *version_minor, bool *result) |
| Query if a given version of an extension is supported by the HSA implementation.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_system_get_extension_table (uint16_t extension, uint16_t version_major, uint16_t version_minor, void *table) |
| Retrieve the function pointers corresponding to a given version of an extension. Portable applications are expected to invoke the extension API using the returned function pointers.
|
|
hsa_status_t HSA_API | hsa_system_get_major_extension_table (uint16_t extension, uint16_t version_major, size_t table_length, void *table) |
| Retrieve the function pointers corresponding to a given major version of an extension.
|
|
hsa_status_t HSA_API | hsa_agent_get_info (hsa_agent_t agent, hsa_agent_info_t attribute, void *value) |
| Get the current value of an attribute for a given agent.
|
|
hsa_status_t HSA_API | hsa_iterate_agents (hsa_status_t(*callback)(hsa_agent_t agent, void *data), void *data) |
| Iterate over the available agents, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_agent_get_exception_policies (hsa_agent_t agent, hsa_profile_t profile, uint16_t *mask) |
| Retrieve the exception policy support for a given combination of agent and profile.
|
|
hsa_status_t HSA_API | hsa_cache_get_info (hsa_cache_t cache, hsa_cache_info_t attribute, void *value) |
| Get the current value of an attribute for a given cache object.
|
|
hsa_status_t HSA_API | hsa_agent_iterate_caches (hsa_agent_t agent, hsa_status_t(*callback)(hsa_cache_t cache, void *data), void *data) |
| Iterate over the memory caches of a given agent, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_agent_extension_supported (uint16_t extension, hsa_agent_t agent, uint16_t version_major, uint16_t version_minor, bool *result) |
| Query if a given version of an extension is supported by an agent.
|
|
hsa_status_t HSA_API | hsa_agent_major_extension_supported (uint16_t extension, hsa_agent_t agent, uint16_t version_major, uint16_t *version_minor, bool *result) |
| Query if a given version of an extension is supported by an agent.
|
|
hsa_status_t HSA_API | hsa_signal_create (hsa_signal_value_t initial_value, uint32_t num_consumers, const hsa_agent_t *consumers, hsa_signal_t *signal) |
| Create a signal.
|
|
hsa_status_t HSA_API | hsa_signal_destroy (hsa_signal_t signal) |
| Destroy a signal previous created by hsa_signal_create.
|
|
hsa_signal_value_t HSA_API | hsa_signal_load_scacquire (hsa_signal_t signal) |
| Atomically read the current value of a signal.
|
|
hsa_signal_value_t HSA_API | hsa_signal_load_relaxed (hsa_signal_t signal) |
| Atomically read the current value of a signal.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_load_acquire (hsa_signal_t signal) |
|
void HSA_API | hsa_signal_store_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal.
|
|
void HSA_API | hsa_signal_store_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_store_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_silent_store_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal without necessarily notifying the the agents waiting on it.
|
|
void HSA_API | hsa_signal_silent_store_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal without necessarily notifying the the agents waiting on it.
|
|
hsa_signal_value_t HSA_API | hsa_signal_exchange_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal and return its previous value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_exchange_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_exchange_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal and return its previous value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_exchange_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_exchange_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal and return its previous value.
|
|
hsa_signal_value_t HSA_API | hsa_signal_exchange_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically set the value of a signal and return its previous value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_exchange_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_cas_scacq_screl (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
| Atomically set the value of a signal if the observed value is equal to the expected value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_cas_acq_rel (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_cas_scacquire (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
| Atomically set the value of a signal if the observed value is equal to the expected value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_cas_acquire (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_cas_relaxed (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
| Atomically set the value of a signal if the observed value is equal to the expected value.
|
|
hsa_signal_value_t HSA_API | hsa_signal_cas_screlease (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
| Atomically set the value of a signal if the observed value is equal to the expected value.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_cas_release (hsa_signal_t signal, hsa_signal_value_t expected, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_add_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically increment the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_add_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_add_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically increment the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_add_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_add_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically increment the value of a signal by a given amount.
|
|
void HSA_API | hsa_signal_add_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically increment the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_add_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_subtract_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically decrement the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_subtract_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_subtract_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically decrement the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_subtract_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_subtract_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically decrement the value of a signal by a given amount.
|
|
void HSA_API | hsa_signal_subtract_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically decrement the value of a signal by a given amount.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_subtract_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_and_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise AND operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_and_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_and_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise AND operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_and_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_and_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise AND operation between the value of a signal and a given value.
|
|
void HSA_API | hsa_signal_and_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise AND operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_and_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_or_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise OR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_or_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_or_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise OR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_or_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_or_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise OR operation between the value of a signal and a given value.
|
|
void HSA_API | hsa_signal_or_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise OR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_or_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_xor_scacq_screl (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise XOR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_xor_acq_rel (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_xor_scacquire (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise XOR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_xor_acquire (hsa_signal_t signal, hsa_signal_value_t value) |
|
void HSA_API | hsa_signal_xor_relaxed (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise XOR operation between the value of a signal and a given value.
|
|
void HSA_API | hsa_signal_xor_screlease (hsa_signal_t signal, hsa_signal_value_t value) |
| Atomically perform a bitwise XOR operation between the value of a signal and a given value.
|
|
void HSA_API HSA_DEPRECATED | hsa_signal_xor_release (hsa_signal_t signal, hsa_signal_value_t value) |
|
hsa_signal_value_t HSA_API | hsa_signal_wait_scacquire (hsa_signal_t signal, hsa_signal_condition_t condition, hsa_signal_value_t compare_value, uint64_t timeout_hint, hsa_wait_state_t wait_state_hint) |
| Wait until a signal value satisfies a specified condition, or a certain amount of time has elapsed.
|
|
hsa_signal_value_t HSA_API | hsa_signal_wait_relaxed (hsa_signal_t signal, hsa_signal_condition_t condition, hsa_signal_value_t compare_value, uint64_t timeout_hint, hsa_wait_state_t wait_state_hint) |
| Wait until a signal value satisfies a specified condition, or a certain amount of time has elapsed.
|
|
hsa_signal_value_t HSA_API HSA_DEPRECATED | hsa_signal_wait_acquire (hsa_signal_t signal, hsa_signal_condition_t condition, hsa_signal_value_t compare_value, uint64_t timeout_hint, hsa_wait_state_t wait_state_hint) |
|
hsa_status_t HSA_API | hsa_signal_group_create (uint32_t num_signals, const hsa_signal_t *signals, uint32_t num_consumers, const hsa_agent_t *consumers, hsa_signal_group_t *signal_group) |
| Create a signal group.
|
|
hsa_status_t HSA_API | hsa_signal_group_destroy (hsa_signal_group_t signal_group) |
| Destroy a signal group previous created by hsa_signal_group_create.
|
|
hsa_status_t HSA_API | hsa_signal_group_wait_any_scacquire (hsa_signal_group_t signal_group, const hsa_signal_condition_t *conditions, const hsa_signal_value_t *compare_values, hsa_wait_state_t wait_state_hint, hsa_signal_t *signal, hsa_signal_value_t *value) |
| Wait until the value of at least one of the signals in a signal group satisfies its associated condition.
|
|
hsa_status_t HSA_API | hsa_signal_group_wait_any_relaxed (hsa_signal_group_t signal_group, const hsa_signal_condition_t *conditions, const hsa_signal_value_t *compare_values, hsa_wait_state_t wait_state_hint, hsa_signal_t *signal, hsa_signal_value_t *value) |
| Wait until the value of at least one of the signals in a signal group satisfies its associated condition.
|
|
hsa_status_t HSA_API | hsa_queue_create (hsa_agent_t agent, uint32_t size, hsa_queue_type32_t type, void(*callback)(hsa_status_t status, hsa_queue_t *source, void *data), void *data, uint32_t private_segment_size, uint32_t group_segment_size, hsa_queue_t **queue) |
| Create a user mode queue.
|
|
hsa_status_t HSA_API | hsa_soft_queue_create (hsa_region_t region, uint32_t size, hsa_queue_type32_t type, uint32_t features, hsa_signal_t doorbell_signal, hsa_queue_t **queue) |
| Create a queue for which the application or a kernel is responsible for processing the AQL packets.
|
|
hsa_status_t HSA_API | hsa_queue_destroy (hsa_queue_t *queue) |
| Destroy a user mode queue.
|
|
hsa_status_t HSA_API | hsa_queue_inactivate (hsa_queue_t *queue) |
| Inactivate a queue.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_load_read_index_acquire (const hsa_queue_t *queue) |
|
uint64_t HSA_API | hsa_queue_load_read_index_scacquire (const hsa_queue_t *queue) |
| Atomically load the read index of a queue.
|
|
uint64_t HSA_API | hsa_queue_load_read_index_relaxed (const hsa_queue_t *queue) |
| Atomically load the read index of a queue.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_load_write_index_acquire (const hsa_queue_t *queue) |
|
uint64_t HSA_API | hsa_queue_load_write_index_scacquire (const hsa_queue_t *queue) |
| Atomically load the write index of a queue.
|
|
uint64_t HSA_API | hsa_queue_load_write_index_relaxed (const hsa_queue_t *queue) |
| Atomically load the write index of a queue.
|
|
void HSA_API | hsa_queue_store_write_index_relaxed (const hsa_queue_t *queue, uint64_t value) |
| Atomically set the write index of a queue.
|
|
void HSA_API HSA_DEPRECATED | hsa_queue_store_write_index_release (const hsa_queue_t *queue, uint64_t value) |
|
void HSA_API | hsa_queue_store_write_index_screlease (const hsa_queue_t *queue, uint64_t value) |
| Atomically set the write index of a queue.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_cas_write_index_acq_rel (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_cas_write_index_scacq_screl (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
| Atomically set the write index of a queue if the observed value is equal to the expected value.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_cas_write_index_acquire (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_cas_write_index_scacquire (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
| Atomically set the write index of a queue if the observed value is equal to the expected value.
|
|
uint64_t HSA_API | hsa_queue_cas_write_index_relaxed (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
| Atomically set the write index of a queue if the observed value is equal to the expected value.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_cas_write_index_release (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_cas_write_index_screlease (const hsa_queue_t *queue, uint64_t expected, uint64_t value) |
| Atomically set the write index of a queue if the observed value is equal to the expected value.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_add_write_index_acq_rel (const hsa_queue_t *queue, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_add_write_index_scacq_screl (const hsa_queue_t *queue, uint64_t value) |
| Atomically increment the write index of a queue by an offset.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_add_write_index_acquire (const hsa_queue_t *queue, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_add_write_index_scacquire (const hsa_queue_t *queue, uint64_t value) |
| Atomically increment the write index of a queue by an offset.
|
|
uint64_t HSA_API | hsa_queue_add_write_index_relaxed (const hsa_queue_t *queue, uint64_t value) |
| Atomically increment the write index of a queue by an offset.
|
|
uint64_t HSA_API HSA_DEPRECATED | hsa_queue_add_write_index_release (const hsa_queue_t *queue, uint64_t value) |
|
uint64_t HSA_API | hsa_queue_add_write_index_screlease (const hsa_queue_t *queue, uint64_t value) |
| Atomically increment the write index of a queue by an offset.
|
|
void HSA_API | hsa_queue_store_read_index_relaxed (const hsa_queue_t *queue, uint64_t value) |
| Atomically set the read index of a queue.
|
|
void HSA_API HSA_DEPRECATED | hsa_queue_store_read_index_release (const hsa_queue_t *queue, uint64_t value) |
|
void HSA_API | hsa_queue_store_read_index_screlease (const hsa_queue_t *queue, uint64_t value) |
| Atomically set the read index of a queue.
|
|
hsa_status_t HSA_API | hsa_region_get_info (hsa_region_t region, hsa_region_info_t attribute, void *value) |
| Get the current value of an attribute of a region.
|
|
hsa_status_t HSA_API | hsa_agent_iterate_regions (hsa_agent_t agent, hsa_status_t(*callback)(hsa_region_t region, void *data), void *data) |
| Iterate over the memory regions associated with a given agent, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API | hsa_memory_allocate (hsa_region_t region, size_t size, void **ptr) |
| Allocate a block of memory in a given region.
|
|
hsa_status_t HSA_API | hsa_memory_free (void *ptr) |
| Deallocate a block of memory previously allocated using hsa_memory_allocate.
|
|
hsa_status_t HSA_API | hsa_memory_copy (void *dst, const void *src, size_t size) |
| Copy a block of memory from the location pointed to by src to the memory block pointed to by dst .
|
|
hsa_status_t HSA_API | hsa_memory_assign_agent (void *ptr, hsa_agent_t agent, hsa_access_permission_t access) |
| Change the ownership of a global, coarse-grained buffer.
|
|
hsa_status_t HSA_API | hsa_memory_register (void *ptr, size_t size) |
| Register a global, fine-grained buffer.
|
|
hsa_status_t HSA_API | hsa_memory_deregister (void *ptr, size_t size) |
| Deregister memory previously registered using hsa_memory_register.
|
|
hsa_status_t HSA_API | hsa_isa_from_name (const char *name, hsa_isa_t *isa) |
| Retrieve a reference to an instruction set architecture handle out of a symbolic name.
|
|
hsa_status_t HSA_API | hsa_agent_iterate_isas (hsa_agent_t agent, hsa_status_t(*callback)(hsa_isa_t isa, void *data), void *data) |
| Iterate over the instruction sets supported by the given agent, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_isa_get_info (hsa_isa_t isa, hsa_isa_info_t attribute, uint32_t index, void *value) |
| Get the current value of an attribute for a given instruction set architecture (ISA).
|
|
hsa_status_t HSA_API | hsa_isa_get_info_alt (hsa_isa_t isa, hsa_isa_info_t attribute, void *value) |
| Get the current value of an attribute for a given instruction set architecture (ISA).
|
|
hsa_status_t HSA_API | hsa_isa_get_exception_policies (hsa_isa_t isa, hsa_profile_t profile, uint16_t *mask) |
| Retrieve the exception policy support for a given combination of instruction set architecture and profile.
|
|
hsa_status_t HSA_API | hsa_isa_get_round_method (hsa_isa_t isa, hsa_fp_type_t fp_type, hsa_flush_mode_t flush_mode, hsa_round_method_t *round_method) |
| Retrieve the round method (single or double) used to implement the floating-point multiply add instruction (mad) for a given combination of instruction set architecture, floating-point type, and flush to zero modifier.
|
|
hsa_status_t HSA_API | hsa_wavefront_get_info (hsa_wavefront_t wavefront, hsa_wavefront_info_t attribute, void *value) |
| Get the current value of a wavefront attribute.
|
|
hsa_status_t HSA_API | hsa_isa_iterate_wavefronts (hsa_isa_t isa, hsa_status_t(*callback)(hsa_wavefront_t wavefront, void *data), void *data) |
| Iterate over the different wavefronts supported by an instruction set architecture, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_isa_compatible (hsa_isa_t code_object_isa, hsa_isa_t agent_isa, bool *result) |
| Check if the instruction set architecture of a code object can be executed on an agent associated with another architecture.
|
|
hsa_status_t HSA_API | hsa_code_object_reader_create_from_file (hsa_file_t file, hsa_code_object_reader_t *code_object_reader) |
| Create a code object reader to operate on a file.
|
|
hsa_status_t HSA_API | hsa_code_object_reader_create_from_memory (const void *code_object, size_t size, hsa_code_object_reader_t *code_object_reader) |
| Create a code object reader to operate on memory.
|
|
hsa_status_t HSA_API | hsa_code_object_reader_destroy (hsa_code_object_reader_t code_object_reader) |
| Destroy a code object reader.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_executable_create (hsa_profile_t profile, hsa_executable_state_t executable_state, const char *options, hsa_executable_t *executable) |
| Create an empty executable.
|
|
hsa_status_t HSA_API | hsa_executable_create_alt (hsa_profile_t profile, hsa_default_float_rounding_mode_t default_float_rounding_mode, const char *options, hsa_executable_t *executable) |
| Create an empty executable.
|
|
hsa_status_t HSA_API | hsa_executable_destroy (hsa_executable_t executable) |
| Destroy an executable.
|
|
hsa_status_t HSA_API | hsa_executable_load_program_code_object (hsa_executable_t executable, hsa_code_object_reader_t code_object_reader, const char *options, hsa_loaded_code_object_t *loaded_code_object) |
| Load a program code object into an executable.
|
|
hsa_status_t HSA_API | hsa_executable_load_agent_code_object (hsa_executable_t executable, hsa_agent_t agent, hsa_code_object_reader_t code_object_reader, const char *options, hsa_loaded_code_object_t *loaded_code_object) |
| Load an agent code object into an executable.
|
|
hsa_status_t HSA_API | hsa_executable_freeze (hsa_executable_t executable, const char *options) |
| Freeze the executable.
|
|
hsa_status_t HSA_API | hsa_executable_get_info (hsa_executable_t executable, hsa_executable_info_t attribute, void *value) |
| Get the current value of an attribute for a given executable.
|
|
hsa_status_t HSA_API | hsa_executable_global_variable_define (hsa_executable_t executable, const char *variable_name, void *address) |
| Define an external global variable with program allocation.
|
|
hsa_status_t HSA_API | hsa_executable_agent_global_variable_define (hsa_executable_t executable, hsa_agent_t agent, const char *variable_name, void *address) |
| Define an external global variable with agent allocation.
|
|
hsa_status_t HSA_API | hsa_executable_readonly_variable_define (hsa_executable_t executable, hsa_agent_t agent, const char *variable_name, void *address) |
| Define an external readonly variable.
|
|
hsa_status_t HSA_API | hsa_executable_validate (hsa_executable_t executable, uint32_t *result) |
| Validate an executable.
|
|
hsa_status_t HSA_API | hsa_executable_validate_alt (hsa_executable_t executable, const char *options, uint32_t *result) |
| Validate an executable.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_executable_get_symbol (hsa_executable_t executable, const char *module_name, const char *symbol_name, hsa_agent_t agent, int32_t call_convention, hsa_executable_symbol_t *symbol) |
| Get the symbol handle for a given a symbol name.
|
|
hsa_status_t HSA_API | hsa_executable_get_symbol_by_name (hsa_executable_t executable, const char *symbol_name, const hsa_agent_t *agent, hsa_executable_symbol_t *symbol) |
| Retrieve the symbol handle corresponding to a given a symbol name.
|
|
hsa_status_t HSA_API | hsa_executable_symbol_get_info (hsa_executable_symbol_t executable_symbol, hsa_executable_symbol_info_t attribute, void *value) |
| Get the current value of an attribute for a given executable symbol.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_executable_iterate_symbols (hsa_executable_t executable, hsa_status_t(*callback)(hsa_executable_t exec, hsa_executable_symbol_t symbol, void *data), void *data) |
| Iterate over the symbols in a executable, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API | hsa_executable_iterate_agent_symbols (hsa_executable_t executable, hsa_agent_t agent, hsa_status_t(*callback)(hsa_executable_t exec, hsa_agent_t agent, hsa_executable_symbol_t symbol, void *data), void *data) |
| Iterate over the kernels, indirect functions, and agent allocation variables in an executable for a given agent, and invoke an application- defined callback on every iteration.
|
|
hsa_status_t HSA_API | hsa_executable_iterate_program_symbols (hsa_executable_t executable, hsa_status_t(*callback)(hsa_executable_t exec, hsa_executable_symbol_t symbol, void *data), void *data) |
| Iterate over the program allocation variables in an executable, and invoke an application-defined callback on every iteration.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_serialize (hsa_code_object_t code_object, hsa_status_t(*alloc_callback)(size_t size, hsa_callback_data_t data, void **address), hsa_callback_data_t callback_data, const char *options, void **serialized_code_object, size_t *serialized_code_object_size) |
| Serialize a code object. Can be used for offline finalization, install-time finalization, disk code caching, etc.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_deserialize (void *serialized_code_object, size_t serialized_code_object_size, const char *options, hsa_code_object_t *code_object) |
| Deserialize a code object.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_destroy (hsa_code_object_t code_object) |
| Destroy a code object.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_get_info (hsa_code_object_t code_object, hsa_code_object_info_t attribute, void *value) |
| Get the current value of an attribute for a given code object.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_executable_load_code_object (hsa_executable_t executable, hsa_agent_t agent, hsa_code_object_t code_object, const char *options) |
| Load code object into the executable.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_get_symbol (hsa_code_object_t code_object, const char *symbol_name, hsa_code_symbol_t *symbol) |
| Get the symbol handle within a code object for a given a symbol name.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_get_symbol_from_name (hsa_code_object_t code_object, const char *module_name, const char *symbol_name, hsa_code_symbol_t *symbol) |
| Get the symbol handle within a code object for a given a symbol name.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_symbol_get_info (hsa_code_symbol_t code_symbol, hsa_code_symbol_info_t attribute, void *value) |
| Get the current value of an attribute for a given code symbol.
|
|
hsa_status_t HSA_API HSA_DEPRECATED | hsa_code_object_iterate_symbols (hsa_code_object_t code_object, hsa_status_t(*callback)(hsa_code_object_t code_object, hsa_code_symbol_t symbol, void *data), void *data) |
| Iterate over the symbols in a code object, and invoke an application-defined callback on every iteration.
|
|