Low-level API

The Ginkgo.API submodule provides a low-level interface which closely matches the Ginkgo C API. While these functions are not intended for general usage, they are useful for calling Ginkgo routines not yet available in Ginkgo.jl main interface, and is the basis for the high-level wrappers. For illustrative purpose, we use a example api.jl here, yet to be replaced.

Ginkgo.API.ginkgo_dim2_createMethod
ginkgo_dim2_create(rows, cols)

Allocates memory for a C-based reimplementation of the gko::dim<2> type

Parameters

  • rows: First dimension
  • cols: Second dimension

Returns

gko_dim2_st C struct that contains members of the gko::dim<2> type

source
Ginkgo.API.ginkgo_executor_deleteMethod
ginkgo_executor_delete(exec_st_ptr)

Deallocates memory for an executor on targeted device.

Parameters

  • exec_st_ptr: Raw pointer to the shared pointer of the executor to be deleted
source