 //**************************************************************************************//
 int main(int argc, char **argv)
 {
-    int i,j,k,l, task, ntasks, thread, cpuid;
+    int i,l, task, ntasks, cpuid;
     char node_name[MPI_MAX_PROCESSOR_NAME];
 
     // determine MPI task and total number of MPI tasks

            }
#elif defined __CUDACC__
            cpuid = sched_getcpu();
            printf("node %s, task %3d of %3d tasks, GPU %3d of %3d, on cpu %3d\n",
                    &node_name[0], task, ntasks, device, num_devices, cpuid);
#else //pure MPI
            cpuid = sched_getcpu();

#endif
#include <sched.h>

#ifndef __CUDACC__
int sched_getcpu(void); //forward declare glibc function to avoid compiler warnings
#endif

//**************************************************************************************//
//Determine on which CPU a thread in an MPI, MPI+OpenMP, or MPI+CUDA program executes.  //
