diff --git a/modcc/printer/gpuprinter.cpp b/modcc/printer/gpuprinter.cpp index 7e8dc2025..0dfbeeb56 100644 --- a/modcc/printer/gpuprinter.cpp +++ b/modcc/printer/gpuprinter.cpp @@ -389,9 +389,9 @@ void emit_api_body_cu(std::ostream& out, APIMethod* e, const ApiFlags& flags) { // update an indexed variable, like current or conductance. // This is the case if one of the external variables "is_write". auto it = std::find_if(indexed_vars.begin(), indexed_vars.end(), - [](auto& sym){return sym->external_variable()->is_write();}); - if (it!=indexed_vars.end()) { - out << "unsigned lane_mask_ = arb::gpu::ballot(arb::gpu::active_mask(), tid_external_variable()->is_write();}); + if (it != indexed_vars.end()) { + out << "unsigned lane_mask_ = arb::gpu::ballot(0xffffffff, tid_