edalize icon indicating copy to clipboard operation
edalize copied to clipboard

prefix run commands

Open rasmus-madsen opened this issue 4 years ago • 5 comments
trafficstars

in a corporate flow, the access to license servers is often restricted to a pool of runtime servers. to run a simulation on one of the 3 main EDA tools you would need to submit your job to that pool.

in the current setup prefixing a command is not possible as far as I can tell. it would be nice with an option to prefix the run command. this would give larger corporations the option of using edalize and fusesoc examples: xcelium - using NC xrun <runtime_options> should be prefix with nc run [options], as nc run -C ncsim -Il xrun <runtime_options> or LSF bsub [options] cxrun<runtime_options>

similar for other LSF like systems

rasmus-madsen avatar Feb 10 '21 19:02 rasmus-madsen

ok, this is another reason to add the prefix support that I suggested in #221 . My immediate thought is that this would be something that is configure per machine, which means it could go into an edalize.conf. Would a static list of mappings between each tool (e.g. xrun, vivado, ecppack, vsim..) and a prefix be enough, or do we need to be more clever? (Please say no)

olofk avatar Feb 28 '21 21:02 olofk

How about going even simpler: Make it one single prefix. If users want something clever, they can have an intermediate script that does exactly what they want (e.g. dispatch Vivado jobs to another lsf job queue than ncsim jobs, for example).

imphil avatar Mar 01 '21 09:03 imphil

Yes! Let's do this

olofk avatar Mar 12 '21 15:03 olofk

I added support for running an external launcher in a couple of backends yesterday, but not xcelium. However! I just realized that I think you can already do this

Try running XRUN="nc run -C ncsim -Il xrun" fusesoc run ... and see if that works

olofk avatar Mar 25 '21 20:03 olofk

@olofk in cshell I have to set the environment variable prior to running fusesoc. which works. I don't think this is an optimal solution. I prefer having an option I can set in a core file!

rasmus-madsen avatar Apr 09 '21 13:04 rasmus-madsen