diff --git a/src/codegen/codegen_acc_visitor.cpp b/src/codegen/codegen_acc_visitor.cpp index 20624b6df..3ea644eb1 100644 --- a/src/codegen/codegen_acc_visitor.cpp +++ b/src/codegen/codegen_acc_visitor.cpp @@ -31,8 +31,7 @@ namespace codegen { * for(int id=0; idpush_block("for (int id = 0; id < nodecount; id++)"); if (info.net_receive_node != nullptr) { @@ -1896,7 +1896,7 @@ void CodegenCoreneuronCppVisitor::print_before_after_block(const ast::Block* nod printer->fmt_line("/** {} of block type {} # {} */", ba_type, ba_block_type, block_id); print_global_function_common_code(BlockType::BeforeAfter, function_name); - print_channel_iteration_block_parallel_hint(BlockType::BeforeAfter, node); + print_parallel_iteration_hint(BlockType::BeforeAfter, node); printer->push_block("for (int id = 0; id < nodecount; id++)"); printer->add_line("int node_id = node_index[id];"); @@ -2025,7 +2025,7 @@ void CodegenCoreneuronCppVisitor::print_watch_check() { // net_receive function we already check if it contains any MUTEX/PROTECT // constructs. As WATCH is not a top level block but list of statements, // we don't need to have ivdep pragma related check - print_channel_iteration_block_parallel_hint(BlockType::Watch, nullptr); + print_parallel_iteration_hint(BlockType::Watch, nullptr); printer->push_block("for (int id = 0; id < nodecount; id++)"); @@ -2339,7 +2339,7 @@ void CodegenCoreneuronCppVisitor::print_get_memb_list() { void CodegenCoreneuronCppVisitor::print_net_receive_loop_begin() { printer->add_line("int count = nrb->_displ_cnt;"); - print_channel_iteration_block_parallel_hint(BlockType::NetReceive, info.net_receive_node); + print_parallel_iteration_hint(BlockType::NetReceive, info.net_receive_node); printer->push_block("for (int i = 0; i < count; i++)"); } @@ -2641,7 +2641,7 @@ void CodegenCoreneuronCppVisitor::print_nrn_state() { printer->add_newline(2); printer->add_line("/** update state */"); print_global_function_common_code(BlockType::State); - print_channel_iteration_block_parallel_hint(BlockType::State, info.nrn_state_block); + print_parallel_iteration_hint(BlockType::State, info.nrn_state_block); printer->push_block("for (int id = 0; id < nodecount; id++)"); printer->add_line("int node_id = node_index[id];"); @@ -2854,7 +2854,7 @@ void CodegenCoreneuronCppVisitor::print_nrn_cur() { printer->add_newline(2); printer->add_line("/** update current */"); print_global_function_common_code(BlockType::Equation); - print_channel_iteration_block_parallel_hint(BlockType::Equation, info.breakpoint_node); + print_parallel_iteration_hint(BlockType::Equation, info.breakpoint_node); printer->push_block("for (int id = 0; id < nodecount; id++)"); print_nrn_cur_kernel(*info.breakpoint_node); print_nrn_cur_matrix_shadow_update(); diff --git a/src/codegen/codegen_cpp_visitor.cpp b/src/codegen/codegen_cpp_visitor.cpp index 9f618bb73..b5e57183d 100644 --- a/src/codegen/codegen_cpp_visitor.cpp +++ b/src/codegen/codegen_cpp_visitor.cpp @@ -390,8 +390,8 @@ std::string CodegenCppVisitor::breakpoint_current(std::string current) const { * for(int id = 0; id < nodecount; id++) { * \endcode */ -void CodegenCppVisitor::print_channel_iteration_block_parallel_hint(BlockType /* type */, - const ast::Block* block) { +void CodegenCppVisitor::print_parallel_iteration_hint(BlockType /* type */, + const ast::Block* block) { // ivdep allows SIMD parallelisation of a block/loop but doesn't provide // a standard mechanism for atomics. Also, even with openmp 5.0, openmp // atomics do not enable vectorisation under "omp simd" (gives compiler diff --git a/src/codegen/codegen_cpp_visitor.hpp b/src/codegen/codegen_cpp_visitor.hpp index b492d75ec..5fbe2fe4f 100644 --- a/src/codegen/codegen_cpp_visitor.hpp +++ b/src/codegen/codegen_cpp_visitor.hpp @@ -804,8 +804,7 @@ class CodegenCppVisitor: public visitor::ConstAstVisitor { * * \param type The block type */ - virtual void print_channel_iteration_block_parallel_hint(BlockType type, - const ast::Block* block); + virtual void print_parallel_iteration_hint(BlockType type, const ast::Block* block); /****************************************************************************************/