the interface functions for dummy tpi
Definition in file tpi_none.c.
#include "tpi/tpi.h"
Go to the source code of this file.
Functions | |
SCIP_RETCODE | SCIPtpiCreateJob (SCIP_JOB **job, int jobid, SCIP_RETCODE(*jobfunc)(void *args), void *jobarg) |
SCIP_RETCODE | SCIPtpiSumbitJob (SCIP_JOB *job, SCIP_SUBMITSTATUS *status) |
SCIP_RETCODE | SCIPtpiCollectJobs (int jobid) |
SCIP_RETCODE | SCIPtpiInit (int nthreads, int queuesize, SCIP_Bool blockwhenfull) |
SCIP_RETCODE | SCIPtpiExit (void) |
SCIP_RETCODE SCIPtpiCreateJob | ( | SCIP_JOB ** | job, |
int | jobid, | ||
SCIP_RETCODE(*)(void *args) | jobfunc, | ||
void * | jobarg | ||
) |
creates a job for parallel processing
job | pointer to the job that will be created |
jobid | the id for the current job |
jobfunc | pointer to the job function |
jobarg | the job's argument |
Definition at line 28 of file tpi_none.c.
References SCIP_ERROR, and SCIP_UNUSED.
SCIP_RETCODE SCIPtpiSumbitJob | ( | SCIP_JOB * | job, |
SCIP_SUBMITSTATUS * | status | ||
) |
submit a job for parallel processing
job | pointer to the job to be submitted |
status | pointer to store the job's submit status |
Definition at line 45 of file tpi_none.c.
References SCIP_ERROR, and SCIP_UNUSED.
SCIP_RETCODE SCIPtpiCollectJobs | ( | int | jobid | ) |
Blocks until all jobs with the given jobid have finished and then returns the smallest SCIP_RETCODE of all the jobs
jobid | the id of the jobs to collect |
Definition at line 58 of file tpi_none.c.
References SCIP_ERROR, and SCIP_UNUSED.
SCIP_RETCODE SCIPtpiInit | ( | int | nthreads, |
int | queuesize, | ||
SCIP_Bool | blockwhenfull | ||
) |
initializes tpi
nthreads | the number of threads to be used |
queuesize | the size of the queue |
blockwhenfull | should the queue block when full |
Definition at line 68 of file tpi_none.c.
References SCIP_ERROR, and SCIP_UNUSED.
SCIP_RETCODE SCIPtpiExit | ( | void | ) |