Reply to Spike Bush regarding save/load simulation

31 views
Skip to first unread message

kashyaph

unread,
Dec 19, 2017, 3:43:08 PM12/19/17
to CARLsim: A GPU-accelerated Spiking Neural Network (SNN) Simulator
Hi Spike,

You may be correct about the file identifier, although I am not exactly sure what you are referring to. There may be typos in examples.

loadSimulation should not delete the file. Please make sure if this is happening. Are you using saveSimulation before using loadSimulation?

This is your previous query:

Dear Hirak,
         I have read the link you gave some days ago ,there should be something wrong .My code is attached .And I run  the network .
         It suggests some errors as follow:
        src/main_test3.cpp: In function ‘int main(int, const char**)’:
        src/main_test3.cpp:61:2: error: ‘simFid’ was not declared in this scope
        simFid = fopen("networkZ.dat", "rb");

         I think it is wrong to printf simFid ,since it is really not declared in this cope .So I change "simFid" to "fId" ,because we have declared "fId" before .
         However ,it is still wrong:
         *****************      Initializing CPU Simulation      *************************
         段错误 (核心已转储)
 

        And one more thing ,every time I run for sim.loadSimulation ,the file ""networkZ.dat" will be deleted automatically.
        That's my question I have met .Thanks for your attention.
Yours,
Spike

spike bush

unread,
Dec 22, 2017, 2:59:05 AM12/22/17
to CARLsim: A GPU-accelerated Spiking Neural Network (SNN) Simulator
Dear Hirak,
         I run the network again,and there was still something wrong.My codes are attached.
         For "main_test1.cpp",I have saved the network successfully ,and there was really a file named "networkZ.dat" in the 
         Secondly ,I run "main_test2_cpp"for loading the network,and there was an error as follow:
         *****************      Initializing CPU Simulation      *************************
         Segmentation fault (core dumped)
         
         Besides , the file "networkZ.dat" was  deleted automatically.
         Of course ,the network of "test1"and "test2" was the same .
         That was my question ,would you like to help me to check my codes and explain the reason .Thank you very much .
Yours,
spike bush 

main_test1.cpp
main_test2.cpp

kashyaph

unread,
Dec 26, 2017, 9:54:18 PM12/26/17
to CARLsim: A GPU-accelerated Spiking Neural Network (SNN) Simulator
Hi Spike Bush, 

Can you please create an issue with your problem on github. It sounds like a peculiar case and should be documented and we can look into the details.

Reply all
Reply to author
Forward
0 new messages