Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] eclipse/photran/PTP and the multithreading

Steve Henshaw a écrit :
> Hi
>
> The OMP_NUM_THREADS variable is as far as I know an environment
> variable, set in the OS, so on linux (in the bash shell) you would type:
>
> export OMP_NUM_THREADS=4
>
> If you wanted it to start like that all the time youd put that line in
> your ~/.bashrc file.
>
> Its a while since i used windows but iirc if you go to control panel >
> system and look around in I think the 'advanced' tab you should be
> able to set an environment variable, you give the variable the name
> OMP_NUM_THREADS and then a value of 4
Thanks for the answer, but I do not think setting OMP_NUM_THREADS is the
end of the story:
I did not set this variable myself before and when I launched my code in
a konsole I could get only 100% in agreement with the fact that it was
not set, but then why did I get 400 % when the same code (compiled and
linked identically with the same Makefile) was launched through eclipse ?
I think there is a default setting somewhere in eclipse that I would
like to find.

-- 

Sincerely yours,

Michel DEVEL



Back to the top