spectre wrapper and SGE
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
spectre wrapper and SGE

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Mark Valery
Guest





Posted: Sat Oct 30, 2004 4:05 am    Post subject: spectre wrapper and SGE Reply with quote

I've used a shell script wrapper in the past to run spectre
with SGE. Soon after setting it up that way, I remember
reading somewhere about using envSetVal or something else
to change what the spectre executable name would be. I
stored it into my porous brain to be used later on
for dynamically changing the executable name.

Well, it leaked out and searching the newsgroups failed.
Does anyone know the command or was I dreaming again?

Thanks,
Mark

Back to top
oghdayan
Guest





Posted: Mon Nov 01, 2004 2:56 am    Post subject: Re: spectre wrapper and SGE Reply with quote

Mark,

will you tell your findings to the newsgroups ? I remeber from an
older post that at least Erik is interested too.

Most of what you need is in anasimhelp->env variables->spectre. The one
you mentioned is simExecName
But you will probably have to deal with the "host" or "mpshost" , so
that communication with artist works properlly. You can also set the
mode to "batch", but this slows down parametrics and montecarlos too much.

Mark Valery wrote:
Quote:
I've used a shell script wrapper in the past to run spectre
with SGE. Soon after setting it up that way, I remember
reading somewhere about using envSetVal or something else
to change what the spectre executable name would be. I
stored it into my porous brain to be used later on
for dynamically changing the executable name.

Well, it leaked out and searching the newsgroups failed.
Does anyone know the command or was I dreaming again?

Thanks,
Mark
Back to top
Erik Wanta
Guest





Posted: Mon Nov 01, 2004 4:04 am    Post subject: Re: spectre wrapper and SGE Reply with quote

I set the following while ADE was up and noticed that the simulation
still ran locally.
envSetVal("spectre.envOpts" "simExecName" 'string "bsub spectre")

If I close and reopen ADE then it takes the simExecName setting. Why
doesn't spectre see the envOpts change I made while ADE is up? Any
ideas on how to get spectre to know I changed simExecName while ADE is
up? If so, we could write a simple form that would allow the user to
prefix the run command with any SGE or LSF command.
---
Erik

oghdayan <oghdayan_AT@xs4all_dot.nl> wrote in message news:<41850b16$0$59950$e4fe514c@dreader10.news.xs4all.nl>...
Quote:
Mark,

will you tell your findings to the newsgroups ? I remeber from an
older post that at least Erik is interested too.

Most of what you need is in anasimhelp->env variables->spectre. The one
you mentioned is simExecName
But you will probably have to deal with the "host" or "mpshost" , so
that communication with artist works properlly. You can also set the
mode to "batch", but this slows down parametrics and montecarlos too much.

Mark Valery wrote:
I've used a shell script wrapper in the past to run spectre
with SGE. Soon after setting it up that way, I remember
reading somewhere about using envSetVal or something else
to change what the spectre executable name would be. I
stored it into my porous brain to be used later on
for dynamically changing the executable name.

Well, it leaked out and searching the newsgroups failed.
Does anyone know the command or was I dreaming again?

Thanks,
Mark


Back to top
Erik Wanta
Guest





Posted: Mon Nov 01, 2004 4:28 am    Post subject: Re: spectre wrapper and SGE Reply with quote

Using the following instead of envSetVal gets the option to change for
the current session:
asiSetEnvOptionVal(asiGetCurrentSession() "simExecName" "bsub
spectre")
---
Erik

oghdayan <oghdayan_AT@xs4all_dot.nl> wrote in message news:<41850b16$0$59950$e4fe514c@dreader10.news.xs4all.nl>...
Quote:
Mark,

will you tell your findings to the newsgroups ? I remeber from an
older post that at least Erik is interested too.

Most of what you need is in anasimhelp->env variables->spectre. The one
you mentioned is simExecName
But you will probably have to deal with the "host" or "mpshost" , so
that communication with artist works properlly. You can also set the
mode to "batch", but this slows down parametrics and montecarlos too much.

Mark Valery wrote:
I've used a shell script wrapper in the past to run spectre
with SGE. Soon after setting it up that way, I remember
reading somewhere about using envSetVal or something else
to change what the spectre executable name would be. I
stored it into my porous brain to be used later on
for dynamically changing the executable name.

Well, it leaked out and searching the newsgroups failed.
Does anyone know the command or was I dreaming again?

Thanks,
Mark
Back to top
Mark Valery
Guest





Posted: Tue Nov 02, 2004 6:21 pm    Post subject: Re: spectre wrapper and SGE Reply with quote

On Sun, 31 Oct 2004 15:28:04 -0800, Erik Wanta wrote:

Quote:
Using the following instead of envSetVal gets the option to change for
the current session:
asiSetEnvOptionVal(asiGetCurrentSession() "simExecName" "bsub
spectre")
---

Erik,
Thanks for debugging this. It has taken we longer to fix the
underlying setup of the computers and software that I was
going to try this on. So hopefully next week I'll start to
use what you wrote.
Thanks,
Mark
Back to top
fogh
Guest





Posted: Wed Nov 03, 2004 11:48 pm    Post subject: Re: spectre wrapper and SGE Reply with quote

Mark,
do you have no issues with message passing ?
do you also define mpshost ?

Mark Valery wrote:
Quote:
On Sun, 31 Oct 2004 15:28:04 -0800, Erik Wanta wrote:


Using the following instead of envSetVal gets the option to change for
the current session:
asiSetEnvOptionVal(asiGetCurrentSession() "simExecName" "bsub
spectre")
---


Erik,
Thanks for debugging this. It has taken we longer to fix the
underlying setup of the computers and software that I was
going to try this on. So hopefully next week I'll start to
use what you wrote.
Thanks,
Mark
Back to top
Mark Valery
Guest





Posted: Thu Nov 04, 2004 7:03 am    Post subject: Re: spectre wrapper and SGE Reply with quote

On Wed, 03 Nov 2004 19:48:28 +0100, fogh wrote:

Quote:
Mark,
do you have no issues with message passing ?
do you also define mpshost ?

I can't remember the command at the moment, but I turned

off interprocess communication with spectre. There are 2
ways that I know of for running spectre from artist. One
keeps a spectre process running inbetween sims and artist
communicates with this process with IPC calls. I don't believe
you would get this to work with SGE without a lot of work.
The second starts up a spectre process for each simulation
run. That was the method I used for SGE.
Mark
Back to top
fogh
Guest





Posted: Fri Nov 05, 2004 4:18 pm    Post subject: Re: spectre wrapper and SGE Reply with quote

Mark Valery wrote:
Quote:
On Wed, 03 Nov 2004 19:48:28 +0100, fogh wrote:


Mark,
do you have no issues with message passing ?
do you also define mpshost ?


I can't remember the command at the moment, but I turned
off interprocess communication with spectre. There are 2
ways that I know of for running spectre from artist. One
keeps a spectre process running inbetween sims and artist
communicates with this process with IPC calls. I don't believe
you would get this to work with SGE without a lot of work.
The second starts up a spectre process for each simulation
run. That was the method I used for SGE.

OK, so you are using batch mode for
spectre.envOpts controlMode
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB