Skip to content
Snippets Groups Projects
Select Git revision
  • f8c79c9637c391c9174eb15c47f877dfcc91f0b2
  • master default
  • dev
3 results

persistentWorkers.js

Blame
  • 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