-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seed does not work at parallel test of spinal sim #1406
Comments
Hi, The issue seems to be Random.nextInt(8) So, in Scala, Random is shared between all threads. That's is why, in recent version on SpinalHDL, the import spinal.core.sim._ will bring you a simRandom that you should use instead of Random. let's me know if the issue pressiste. |
Hi, @Dolu1990 Sorry for later reply, but it dose take a few days for us to port to latest version of SpinalHDL. We are still trying |
one main change is that if you use the SpinalHDL dev branch, the default Scala version is now 2.12.18 |
Also, let's me know if you have specific issues porting |
Hi @Dolu1990 sinRandom really works Thanks |
Hi,
I got problems at parallel test of spinal sim.
I add configure to build.sbt
And doing test like:
RandomTester and RandomTester1 are the same expected different seed.
The problem happens when execute
sbt "test:testOnly *.RandomTester*"
The results are different each time I execute sbt test like
or like
But when I execute RandomTester alone, the output logs are always the same, like
So how can I use seed to reproduce the simulation results when doing parallel test?
Thanks.
The text was updated successfully, but these errors were encountered: