After creating a Futhark context with the C function
futhark_context_new(), the caller must immediately call
futhark_context_get_error() to determine whether initialisation
succeeded. Only if futhark_context_get_error() returns NULL
should the context be used.
After creating a Futhark context with the C function
futhark_context_new()
, the caller must immediately callfuthark_context_get_error()
to determine whether initialisation succeeded. Only iffuthark_context_get_error()
returnsNULL
should the context be used.