 
     cudaDeviceSynchronize();
 
-    auto end = std::chrono::system_clock::now();
-
-    std::chrono::duration<double> elapsed_seconds = end - start;
+    const auto end = std::chrono::system_clock::now();
+
+    const std::chrono::duration<double> elapsed_seconds = end - start;
     std::cout << "elapsed time: " << elapsed_seconds.count() << "s" << std::endl << std::endl;
 }
 

    {
        static __shared__ T lshared[32];
        static __shared__ T ushared[32];
        int lane = threadIdx.x%warpSize;
        int wid = threadIdx.x/warpSize;

        warp_reduce_sum_csts(lval, uval);


__global__
void create_res_coeffs_csts(float_type* coeffs, float_type* bias, const int num_chunks, const int chunk_counter, const int input_size_z)
{
    const int out_x = blockIdx.x;
    const int out_y = blockIdx.y;
    const int out_z = blockIdx.z;

    const int local_mat_x = out_x*gridDim.y*gridDim.z + out_y*gridDim.z + out_z;

