CHAMELEON 1.4.0
Loading...
Searching...
No Matches

◆ __chameleon_initparcomm()

int __chameleon_initparcomm ( int  ncpus,
int  ngpus,
int  nthreads_per_worker,
MPI_Comm  comm 
)

Initialize CHAMELEON with number of cpus and gpus and threads per worker and using a given MPI communicator.

Parameters
[in]ncpusNumber of cores to use.
[in]ngpusNumber of cuda devices to use.
[in]nthreads_per_workerNumber of threads per worker (cpu, cuda device).
[in]commThe MPI communicator.
Return values
CHAMELEON_SUCCESSsuccessful exit

Definition at line 113 of file control.c.

References chameleon_context_create(), chameleon_fatal_error(), and chameleon_warning().

Referenced by __chameleon_initpar().