Thread Previous • Date Previous • Date Next • Thread Next |
In py/yadeWrapper/yadeWrapper.cpp one can see :void numThreads_set(int n){ int bcn=OMEGA.getRootBody()- >bex.getNumAllocatedThreads(); if(bcn<n) LOG_WARN("BexContainer has only "<<bcn<<" threads allocated. Changing thread number to on "<<bcn<<" instead of "<<n<<" requested."); omp_set_num_threads(min (n,bcn)); LOG_WARN("BUG: Omega().numThreads=n doesn't work as expected (number of threads is not changed globally). Set env var OMP_NUM_THREADS instead."); }
so maybe an export OMP_NUM_THREADS=16 should work (?) VR Le 22 sept. 2009 à 10:21, Janek Kozicki a écrit :
Bruno Chareyre said: (by the date of Mon, 21 Sep 2009 17:52:17 +0200)As a preliminary result, Remi said "weird, it using very few cpu". He still investigating this.there's an OPEN MP option somewhere saying how many CPUs you want to use. Vaclav should know how to set it. Perhaps by default it uses just 2 CPUs? And you have 16... --Janek Kozicki |_______________________________________________ Mailing list: https://launchpad.net/~yade-users Post to : yade-users@xxxxxxxxxxxxxxxxxxx Unsubscribe : https://launchpad.net/~yade-users More help : https://help.launchpad.net/ListHelp
Thread Previous • Date Previous • Date Next • Thread Next |