Commit 701457b1 authored by incardon's avatar incardon
Browse files

Fixing default number of threads

parent c4610f53
Pipeline #2936 passed with stages
in 34 seconds
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "config.h" #include "config.h"
#include "cuda_kernel_error_checker.hpp" #include "cuda_kernel_error_checker.hpp"
#if defined(CUDA_GPU) && !defined(CUDA_ON_CPU) && !defined(__HIP__) #if defined(__NVCC__) && !defined(CUDA_ON_CPU) && !defined(__HIP__)
constexpr int default_kernel_wg_threads_ = 1024; constexpr int default_kernel_wg_threads_ = 1024;
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#ifdef CUDA_ON_CPU #ifdef CUDA_ON_CPU
constexpr int default_kernel_wg_threads_ = 1024;
#include "cudify_hardware_common.hpp" #include "cudify_hardware_common.hpp"
#ifdef HAVE_BOOST_CONTEXT #ifdef HAVE_BOOST_CONTEXT
...@@ -549,6 +551,10 @@ static void exe_kernel_no_sync(lambda_f f, ite_type & ite) ...@@ -549,6 +551,10 @@ static void exe_kernel_no_sync(lambda_f f, ite_type & ite)
#endif #endif
#endif #else
#endif constexpr int default_kernel_wg_threads_ = 1024;
#endif /* CUDA_ON_CPU */
#endif /* CUDIFY_SEQUENCIAL_HPP_ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment