Discussion:
[deprecated list] How to run the simulation in 1 thread
Anton Gladky
2009-08-05 07:56:48 UTC
Permalink
Hi,
How can I add this parameter?
OMP_NUM_THREADS==1

Recompile the code?

Thanks
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Václav Šmilauer
2009-08-05 08:06:21 UTC
Permalink
Post by Anton Gladky
Hi,
How can I add this parameter?
OMP_NUM_THREADS==1
OMP_NUM_THREADS=1 yade-trunk ...

or to apply it also to next invocations in the same shell (terminal)

export OMP_NUM_THREADS=1

Number of threads must be set when program starts (it seems; I wasn't
able to change it at runtime, although there is a function provided for
that)

If you use yade-multi, columns prefixed with bang are passed as env vars
to the process automatically:

!OMP_NUM_THREADS some
1 3.4
2 3.4
3 3.4

Best, Vaclav


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-05 08:23:57 UTC
Permalink
Post by Václav Šmilauer
Post by Anton Gladky
Hi,
How can I add this parameter?
OMP_NUM_THREADS==1
OMP_NUM_THREADS=1 yade-trunk ...
or to apply it also to next invocations in the same shell (terminal)
export OMP_NUM_THREADS=1
Number of threads must be set when program starts (it seems; I wasn't
able to change it at runtime, although there is a function provided for
that)
If you use yade-multi, columns prefixed with bang are passed as env vars
!OMP_NUM_THREADS some
What is the right syntax for that? I use in the first string

!OMP_NUM_THREADS 1

But it does not work:

File "./../bin/yade-current-multi", line 188, in <module>
if head=='!OMP_NUM_THREADS': nSlots=int(values[l][col])
ValueError: invalid literal for int() with base 10: 'description'
Post by Václav Šmilauer
1 3.4
2 3.4
3 3.4
Best, Vaclav
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Václav Šmilauer
2009-08-05 08:30:19 UTC
Permalink
Post by Anton Gladky
What is the right syntax for that? I use in the first string
!OMP_NUM_THREADS 1
File "./../bin/yade-current-multi", line 188, in <module>
if head=='!OMP_NUM_THREADS': nSlots=int(values[l][col])
ValueError: invalid literal for int() with base 10: 'description'
See examples/collider-perf/perf.table




_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-05 08:37:39 UTC
Permalink
Ok, thank you!
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
What is the right syntax for that? I use in the first string
!OMP_NUM_THREADS 1
File "./../bin/yade-current-multi", line 188, in <module>
if head=='!OMP_NUM_THREADS': nSlots=int(values[l][col])
ValueError: invalid literal for int() with base 10: 'description'
See examples/collider-perf/perf.table
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-08-05 08:52:24 UTC
Permalink
http://yade.wikia.com/wiki/FAQ#How_to_run_the_simulation_in_1_thread.3F
Post by Anton Gladky
Ok, thank you!
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
What is the right syntax for that? I use in the first string
!OMP_NUM_THREADS 1
File "./../bin/yade-current-multi", line 188, in <module>
if head=='!OMP_NUM_THREADS': nSlots=int(values[l][col])
ValueError: invalid literal for int() with base 10: 'description'
See examples/collider-perf/perf.table
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Loading...