Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

isnns performance

3 views
Skip to first unread message

Cliff Kotnik

unread,
Nov 21, 2002, 3:01:31 PM11/21/02
to
I had prototyped a network in perl and then converted it to use isnns,
expecting a healthy speed increase. Instead I found a decrease in
performance. After spending some time with the profiler, I discovered
96% of the CPU was being consumed in kr_np_floatmalloc. I'd like to
suggest the following improvement to this program to only create a new
pattern once at startup. I have just started looking at the source
code, so I may be doing something which does not work in all cases. Any
comments are welcome.

This improves speed 15-20 times for me.

static void define_pattern(void)
{
if (pat_set == -1){
errChk(krui_allocNewPatternSet(&pat_set));
errChk(krui_newPattern()); /* added clk */
}
else
{
errChk(krui_setPatternNo(1));
/* deleted clk errChk(krui_deletePattern()); */
errChk(krui_modifyPattern()); /* added clk */
}

/* deleted clk errChk(krui_newPattern()); */

/* since the pattern has no variable dimensions the following */
/* functions may be called with dummyarray arguments with don't */
/* care contents */
errChk(krui_DefShowSubPat(dummyarray, dummyarray, dummyarray,
dummyarray));
errChk(krui_DefTrainSubPat(dummyarray, dummyarray, dummyarray,
dummyarray, NULL));
}

Cliff

--
FedEx
.. Cliff Kotnik
.... clko...@fedex.com
...... Voice: 719-484-2284 FAX: 719-484-2279


An H. Le

unread,
Nov 22, 2002, 5:27:14 AM11/22/02
to
Hi all,

Has anyone successfully compiled SNNS in Red Hat 8.0? I have tried several
times and always failed when compiling xgui.

Any suggestions would be greatly appreciated.

Le


Patrick Kursawe

unread,
Nov 22, 2002, 8:34:04 AM11/22/02
to

Have you checked the "bugfixes" section on the SNNS homepage? If not, do
so. If yes, tell us the compiler error message.

Bye, Patrick


Ze Ji

unread,
Nov 26, 2002, 9:04:41 PM11/26/02
to
I have tried to do as the webpage said. It still did not work. The problem
is with compiling the source code of xgui , I will send the details of the
error message later if necessary.

Thanks

0 new messages