SpineML / SpineML_2_BRAHMS

Code generation scripts to run a SpineML neural model using BRAHMS on standard CPUs
http://spineml.github.io/simulators/BRAHMS/
4 stars 3 forks source link

externalInput component.dylib isn't getting recompiled when calling convert_script_s2b #10

Closed sebjameswml closed 10 years ago

sebjameswml commented 10 years ago

Hi @ajc158 - it doesn't seem to recompile externalInput successfully for me:

dyn201167:SpineML_2_BRAHMS sebjames$ pwd
/Users/sebjames/SpineML_2_BRAHMS
dyn201167:SpineML_2_BRAHMS sebjames$ SYSTEMML_INSTALL_PATH=/Applications/spinecreator.app/Contents/MacOS/SystemML/ REBUILD=false PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Applications/spinecreator.app/Contents/MacOS/SystemML/BRAHMS/bin/ BRAHMS_NS=/usr/bin:/bin:/usr/sbin:/sbin:/Users/sebjames/SpineML_2_BRAHMS/temp/Namespace/ ./convert_script_s2b
Tools compiled correctly
~/SpineML_2_BRAHMS/temp ~/SpineML_2_BRAHMS
In directory:  /Users/sebjames/SpineML_2_BRAHMS/temp
Execute: ./output.script experiment.xml false /Users/sebjames/SpineML_2_BRAHMS  true /Users/sebjames/SpineML_2_BRAHMS/xsl
Creating the Neuron populations...
Component for population 1 exists, skipping
Creating the projections...
Dir = /Users/sebjames/SpineML_2_BRAHMS
Building the SystemML system...
Building the SystemML execution...
Done!
Running!
Executing brahms --par-NamespaceRoots=/Users/sebjames/SpineML_2_BRAHMS:../tools sys-exe.xml
E_MODULE_NOT_FOUND: module not found "../tools/dev/SpineML/tools/externalInput/brahms/0/component.dylib"
    whilst processing "engine->open()"
Failed to run output.script on the experiment.xml. Falling at the last hurdle.
dyn201167:SpineML_2_BRAHMS sebjames$

Could you try removing one of your component.dylib files in your tools subdirectory and see if a model will still run?

Note that in the above, I'm setting all the env. variables on the same command line as I call ./convert_script_s2b.

ajc158 commented 10 years ago

Looks like it didn't try to recompile - try removing current_os On 25 Jun 2014 14:58, "Seb James" notifications@github.com wrote:

Hi @ajc158 https://github.com/ajc158 - it doesn't seem to recompile externalInput successfully for me:

dyn201167:SpineML_2_BRAHMS sebjames$ pwd /Users/sebjames/SpineML_2_BRAHMS dyn201167:SpineML_2_BRAHMS sebjames$ SYSTEMML_INSTALL_PATH=/Applications/spinecreator.app/Contents/MacOS/SystemML/ REBUILD=false PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Applications/spinecreator.app/Contents/MacOS/SystemML/BRAHMS/bin/ BRAHMS_NS=/usr/bin:/bin:/usr/sbin:/sbin:/Users/sebjames/SpineML_2_BRAHMS/temp/Namespace/ ./convert_script_s2b Tools compiled correctly ~/SpineML_2_BRAHMS/temp ~/SpineML_2_BRAHMS In directory: /Users/sebjames/SpineML_2_BRAHMS/temp Execute: ./output.script experiment.xml false /Users/sebjames/SpineML_2_BRAHMS true /Users/sebjames/SpineML_2_BRAHMS/xsl Creating the Neuron populations... Component for population 1 exists, skipping Creating the projections... Dir = /Users/sebjames/SpineML_2_BRAHMS Building the SystemML system... Building the SystemML execution... Done! Running! Executing brahms --par-NamespaceRoots=/Users/sebjames/SpineML_2_BRAHMS:../tools sys-exe.xml E_MODULE_NOT_FOUND: module not found "../tools/dev/SpineML/tools/externalInput/brahms/0/component.dylib" whilst processing "engine->open()" Failed to run output.script on the experiment.xml. Falling at the last hurdle. dyn201167:SpineML_2_BRAHMS sebjames$

Could you try removing one of your component.dylib files in your tools subdirectory and see if a model will still run?

Note that in the above, I'm setting all the env. variables on the same command line as I call ./convert_script_s2b.

— Reply to this email directly or view it on GitHub https://github.com/SpineML/SpineML_2_BRAHMS/issues/10.

sebjameswml commented 10 years ago

Ok, that solved it. There needs to be some warning that due to the presence of that file it isn't recompiling, in case you manually removed the .dylib to try to force it to recompile.

sebjameswml commented 10 years ago

I plan to add a test for the presence of the various component.dylib files (or component.so files if on Linux) after the test of the content of current_os. I may also add a command line option to force a rebuild of the tools, as if there had been an "OS change detected.."

sebjameswml commented 10 years ago

The current code will now do the relevant testing for component.dylib/component.so files, so this should be fixed.