Search found 21 matches

by wvangeit
Tue Oct 07, 2008 1:15 am
Forum: Other questions
Topic: Detecting nan and other errors under program control
Replies: 4
Views: 3047

Re: Detecting nan and other errors under program control

So is there a way in the hoc language to see if e.g. soma.v(0.5) is not "nan" ?
I need this, because I'm doing parameter searching, and apparently some parameter sets generate results with "nan", in which case I need to detect this.

Thank you,

Werner Van Geit
by wvangeit
Wed Sep 24, 2008 12:00 am
Forum: Parallel NEURON
Topic: Neuron 7.0 alpha, segmentation fault
Replies: 9
Views: 4057

Re: Neuron 7.0 alpha, segmentation fault

Okay, I have added the following to my code:

Code: Select all

load_file("parcom.hoc")

objref pc
pc = new ParallelComputeTool()
pc.multisplit(1)
pc.nthread(2)
And now it runs on 2 cores (it uses 160% of the processing power of 1 core) without using a GUI.
by wvangeit
Sun Sep 21, 2008 10:48 pm
Forum: Parallel NEURON
Topic: Neuron 7.0 alpha, segmentation fault
Replies: 9
Views: 4057

Re: Neuron 7.0 alpha, segmentation fault

Do I have to enable the multithreading in some way, or is this automatically activated ? When I run the original Akemann-Knopfel without GUI, Neuron uses only 1 core of my Core 2 Duo processor in my Mac. Or is Neuron not able to parallelize this model ? (When I activate the GUI, then 66% of my proce...
by wvangeit
Sun Sep 21, 2008 9:00 pm
Forum: Parallel NEURON
Topic: Neuron 7.0 alpha, segmentation fault
Replies: 9
Views: 4057

Re: Neuron 7.0 alpha, segmentation fault

I still have a question about this THREADSAFE statement. Does this cause Neuron to generate threadsafe code (like I supposed it did), or does it only allow the user to declare that a certain mod file 'is' threadsafe ? In the former case, I suppose I want to use threadsafe in the mod files I'm using....
by wvangeit
Sun Sep 21, 2008 8:55 pm
Forum: Parallel NEURON
Topic: Neuron 7.0 alpha, segmentation fault
Replies: 9
Views: 4057

Re: Neuron 7.0 alpha, segmentation fault

Return to the original Akemann files and do NOT add THREADSAFE to any mod files. This works on my mac osx 10.4 machine. Does it work on yours? I have tried this, and the original runs indeed without problems. I have also tried your suggestion about commenting out the LINEAR block (and making the ot...
by wvangeit
Fri Sep 19, 2008 1:17 am
Forum: Parallel NEURON
Topic: Neuron 7.0 alpha, segmentation fault
Replies: 9
Views: 4057

Neuron 7.0 alpha, segmentation fault

I have compiled and installed Neuron 7.0.1072 (obtained from subversion archive) on Mac OS X 10.5.5. It generates a segmentation fault when I try to run an adapted version of the Akemann & Knopfel PC model (http://senselab.med.yale.edu/SiteNet/eavData.aspx?db=2&cl=19&o=80769). (I added also THREADSA...