total = upc_all_alloc (THREADS, cap_per_thread * n_books *sizeof(int));
should mean that the data is layed out in blocks of sizecap_per_thread * n_books * sizeof(int). am I getting anything wronghere?
thanks,Jue