Q/RFE: VEX Number of threads

   4566   4   0
User Avatar
Member
9394 posts
Joined: 7月 2007
オフライン
Can I specify the number of threads as a non fixed value?
I have 2 cores on my notebook, so the maximum value I can set this to is 2
but when i open the asset on my 8 core workstation it is using only 2 cores however it is possible to set it to 8

it would be useful if i can set it to Maximum, so it will use the maximum cores on all machines
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
4344 posts
Joined: 7月 2005
オフライン
Just set your VEX OP to be “One Per Processor” in the UI. It will use the max num of cpus this way.

opparm NODE vex_numthreads ( 1perproc )
if(coffees<2,round(float),float)
User Avatar
Member
9394 posts
Joined: 7月 2007
オフライン
thanks, but will it use all cores?
i have thought that it is per CPU not per core
but it seems to speed things up so you are propably right

another Q

is there any reason for default being No Threading?
can i run into stability issues by using it widely?
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
4344 posts
Joined: 7月 2005
オフライン
'Generally' each core == one cpu as far as the OS is concerned.

Having threading off is the “safest” choice, so its default. Some people have run into stability problems. Also things like point clouds and pcunshaded aren't threading friendly.

I personally haven't run into problems using multi-threaded VEX OPs, but your mileage may vary.
if(coffees<2,round(float),float)
User Avatar
Member
9394 posts
Joined: 7月 2007
オフライン
thanks for the info
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links