PSCF v1.1
Functions
Pscf::Pspg::ThreadGrid Namespace Reference

Global functions and variables to control GPU thread and block counts. More...

Functions

void init ()
 Initialize static variables in Pspg::ThreadGrid namespace. More...
 
void setThreadsPerBlock ()
 Set the number of threads per block to a default value. More...
 
void setThreadsPerBlock (int nThreadsPerBlock)
 Set the number of threads per block to a specified value. More...
 
void setThreadsLogical (int nThreadsLogical)
 Set the total number of threads required for execution. More...
 
void setThreadsLogical (int nThreadsLogical, int &nBlocks)
 Set the total number of threads required for execution. More...
 
void setThreadsLogical (int nThreadsLogical, int &nBlocks, int &nThreads)
 Set the total number of threads required for execution. More...
 
void checkExecutionConfig ()
 Check the execution configuration (threads and block counts). More...
 
int nBlocks ()
 Get the current number of blocks for execution. More...
 
int nThreads ()
 Get the number of threads per block for execution. More...
 
int nThreadsLogical ()
 Return previously requested total number of threads. More...
 
bool hasUnusedThreads ()
 Indicates whether there will be unused threads. More...
 

Detailed Description

Global functions and variables to control GPU thread and block counts.