Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/codegen/codegen_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1359,11 +1359,6 @@ void CodegenCppVisitor::setup(const Program& node) {
}
info.rsuffix = info.point_process ? "" : "_" + info.mod_suffix;

if (!info.vectorize) {
logger->warn(
"CodegenCoreneuronCppVisitor : MOD file uses non-thread safe constructs of NMODL");
}

codegen_float_variables = get_float_variables();
codegen_int_variables = get_int_variables();

Expand Down
7 changes: 6 additions & 1 deletion src/codegen/codegen_helper_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
#include "ast/all.hpp"
#include "codegen/codegen_naming.hpp"
#include "parser/c11_driver.hpp"
#include "utils/logger.hpp"
#include "visitors/visitor_utils.hpp"


namespace nmodl {
namespace codegen {

Expand Down Expand Up @@ -738,14 +738,19 @@ CodegenInfo CodegenHelperVisitor::analyze(const ast::Program& node) {

void CodegenHelperVisitor::visit_linear_block(const ast::LinearBlock& /* node */) {
info.vectorize = false;
logger->warn("CodegenHelperVisitor : MOD file uses non-thread safe construct of NMODL: LINEAR");
}

void CodegenHelperVisitor::visit_non_linear_block(const ast::NonLinearBlock& /* node */) {
info.vectorize = false;
logger->warn(
"CodegenHelperVisitor : MOD file uses non-thread safe construct of NMODL: NONLINEAR");
}

void CodegenHelperVisitor::visit_discrete_block(const ast::DiscreteBlock& /* node */) {
info.vectorize = false;
logger->warn(
"CodegenHelperVisitor : MOD file uses non-thread safe construct of NMODL: DISCRETE");
}

void CodegenHelperVisitor::visit_update_dt(const ast::UpdateDt& node) {
Expand Down