omp_is_initial_device

Purpose

The omp_is_initial_device function tests whether the current task is executing on the host device.

Prototype

int omp_is_initial_device(void);

Result Value

If the current task is executing on the host device, the function returns nonzero. Otherwise, it returns zero.



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us