tpi_openmp.c
Go to the documentation of this file.
33/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
51#define SCIPompDestroyCondition(condition) do { assert((condition)->_waiters == 0); assert((condition)->_waitnum == 0); assert((condition)->_signals == 0); omp_destroy_lock(&(condition)->_lock); } while(0)
92 SCIP_JOB** currentjobs; /**< array with slot for each thread to store the currently running job */
333 /* @todo we want to work out what to do with a full job queue. Is there a problem if the limit is hit? */
334 /* @note it is important to have a queuesize. This will stop the code submitting infinitely many jobs. */
339 /* This function queries the current job list. This could change by other threads writing to the list. So a lock is
552 /* if the job has the right jobid collect its retcode, remove it from the finished job list, and free it */
memory allocation routines
public methods for message output
Definition: tpi_openmp.c:62
Definition: tpi_openmp.c:82
Definition: tpi_openmp.c:90
Definition: tpi_openmp.c:72
Definition: tpi_openmp.c:56
the type definitions for the SCIP parallel interface
SCIP_RETCODE SCIPtpiWaitCondition(SCIP_CONDITION *condition, SCIP_LOCK *lock)
Definition: tpi_openmp.c:199
SCIP_RETCODE SCIPtpiCreateJob(SCIP_JOB **job, int jobid, SCIP_RETCODE(*jobfunc)(void *args), void *jobarg)
Definition: tpi_openmp.c:429
SCIP_RETCODE SCIPtpiSignalCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:381
SCIP_RETCODE SCIPtpiBroadcastCondition(SCIP_CONDITION *condition)
Definition: tpi_openmp.c:399
SCIP_RETCODE SCIPtpiSubmitJob(SCIP_JOB *job, SCIP_SUBMITSTATUS *status)
Definition: tpi_openmp.c:461
static SCIP_RETCODE SCIPompWaitCondition(SCIP_CONDITION *condition, omp_lock_t *lock)
Definition: tpi_openmp.c:238
static SCIP_RETCODE createJobQueue(int nthreads, int qsize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:106
void SCIPtpiDestroyCondition(SCIP_CONDITION **condition)
Definition: tpi_openmp.c:693
SCIP_RETCODE SCIPtpiInitCondition(SCIP_CONDITION **condition)
Definition: tpi_openmp.c:676
SCIP_RETCODE SCIPtpiInit(int nthreads, int queuesize, SCIP_Bool blockwhenfull)
Definition: tpi_openmp.c:595