Select Git revision
-
Erik Strand authoredErik Strand authored
constants.h 475 B
#ifndef MPI_PI_GPU_CONSTANTS_H
#define MPI_PI_GPU_CONSTANTS_H
#include <cstdint>
// currently init_kernel assumes n_terms_per_thread is a multiple of 10
uint64_t const n_terms_per_thread = 1000000;
uint64_t const n_threads_per_gpu = 1024 * 1024;
uint64_t const n_terms_per_gpu = n_terms_per_thread * n_threads_per_gpu;
uint64_t const n_threads_per_block = 1024;
uint64_t const n_blocks_per_gpu = (n_threads_per_gpu + n_threads_per_block - 1) / n_threads_per_block;
#endif