Open ptheywood opened 3 months ago
but it does not appear to get explicitly initialised anywhere, which may be the problem (or it might not, as a debug build reproduced the error).
Default implicit constructor, which is implicitly called by subclass's constructor. I don't think that is the problem.
Encountered a bug when working on a non-trivial model, where when using the DAG api (
dependsOn
etc) errors would occur when abstracting the definition of agent function behaviours and inclusion in the control flow DAG to mehtods in a separate file which take a reference of theModelDescription
object. The same abstraciton but using layers behaves fine.E.g. something along the lines of (untested)
main.cu
Splitting out the agent funciton(s) into methods in a .cu file, with an associated header
other.cuh
main.cu
In the separate larger model where this occurred, this resulted in runtime errors under linux (CUDA 12.5, GCC 11) resulted in runtime errors for the split case, while the first case was fine.
The runtime error was:
Which via gdb had a backtrace pointing at
DependencyNode::getDependents
called byDependencyGraph::validateSubTree(DependencyNode* node, std::vector<DependencyNode*>& functionStack)
DependencyNode::dependents
is astd::vector<DependencyNode*> dependents;
but it does not appear to get explicitly initialised anywhere, which may be the problem (or it might not, as a debug build reproduced the error).