Hi @Jeevan_codes8580. I don’t think this has to do with parallelization or even Brian as such, but rather with the configuration of the cluster and the fact that you are using a conda environment (possibly with a C++ compiler installed as a conda package?). Does compiling a simple test.c
file like the following works with g++ test.c
on your cluster, or do you also get an error?
#include <stdio.h>
int main()
{
printf("Hello World.\n");
}
It might be necessary to define/overwrite the CC
and CXX
environment variables, to make sure that your cluster’s compilers and not conda’s are used (see this discussion for a similar issue: Cannot Use Cython).
E.g. try adding the following to the top of your script:
import os
os.environ['CC'] = 'gcc'
os.environ['CXX'] = 'g++'
Your cluster maintainers might also have written down instructions for such settings somewhere. Let me know whether this helps!