Alternative VE Offloading
3.0.2
examples/VH/omphello_static.c
#include <ve_offload.h>
int
main()
{
/* Load "vehello" on VE node 0 */
struct
veo_proc_handle *proc =
veo_proc_create_static
(0,
"./veorun_omphello"
);
uint64_t handle = 0UL;
/* find a function in the executable */
struct
veo_thr_ctxt *ctx =
veo_context_open
(proc);
struct
veo_args *argp =
veo_args_alloc
();
uint64_t
id
=
veo_call_async_by_name
(ctx, handle,
"omp_hello"
, argp);
uint64_t retval;
veo_call_wait_result
(ctx,
id
, &retval);
veo_args_free
(argp);
veo_context_close
(ctx);
veo_proc_destroy
(proc);
return
0;
}
Generated by
1.8.5