Processor portability for OpenMP.

General OpenMP discussion

Processor portability for OpenMP.

Postby Rosen » Tue Jun 17, 2014 11:39 pm

Hello.

Could somebody give me information is it possible to run OpenMP on processors different than Intel?
If possible, is there limitations or special way to use OpenMP?

Thank you in advance for your time.
Rosen
 
Posts: 5
Joined: Tue Jun 10, 2014 9:14 am

Re: Processor portability for OpenMP.

Postby ftinetti » Wed Jun 18, 2014 4:52 am

Hi,

You can "run OpenMP" in any platform where an "OpenMP compiler" (http://openmp.org/wp/openmp-compilers/) is available. I do not know any limitation or special way to use it.

HTH,

Fernando.
ftinetti
 
Posts: 580
Joined: Wed Feb 10, 2010 2:44 pm

Re: Processor portability for OpenMP.

Postby Rosen » Wed Jun 18, 2014 11:26 pm

OK. But if I use compiler on Intel processor, do you know such compilation to have problems running on non-Intel processor?
Rosen
 
Posts: 5
Joined: Tue Jun 10, 2014 9:14 am

Re: Processor portability for OpenMP.

Postby MarkB » Thu Jun 19, 2014 3:04 am

Rosen wrote:But if I use compiler on Intel processor, do you know such compilation to have problems running on non-Intel processor?


I'm not sure what you are asking! Please can you be more explicit about what you are trying to do, and which compiler(s) and hardware you are using.
MarkB
 
Posts: 432
Joined: Thu Jan 08, 2009 10:12 am

Re: Processor portability for OpenMP.

Postby Rosen » Thu Jun 19, 2014 11:35 pm

I have to use Windows environment and Intel processor. I have to use set OMP_NUM_THREADS=<number of threads> in the command prompt and execute there an .exe with the code

#pragma omp parallel for private (i)
for(i=0;i<l;i++)

in it.

I may need to use in the code
omp_set_num_threads(<number of threads>);
as well.

I have installed Visual Studio 2012 Ultimate so I guess I use Visual Studio 2010 C++ compiler. So it implements OpenMP 2.0 standard.
Rosen
 
Posts: 5
Joined: Tue Jun 10, 2014 9:14 am

Re: Processor portability for OpenMP.

Postby MarkB » Fri Jun 20, 2014 2:28 am

OK, so what other processor are you trying to run on?
MarkB
 
Posts: 432
Joined: Thu Jan 08, 2009 10:12 am

Re: Processor portability for OpenMP.

Postby Rosen » Fri Jun 20, 2014 5:48 am

I intend to use it on AMD and ARM processors as well.
Rosen
 
Posts: 5
Joined: Tue Jun 10, 2014 9:14 am

Re: Processor portability for OpenMP.

Postby MarkB » Fri Jun 20, 2014 9:38 am

You will need to recompile the code for different processors, and you may need to use a different compiler.
Most common compilers support OpenMP, including GNU.
MarkB
 
Posts: 432
Joined: Thu Jan 08, 2009 10:12 am

Re: Processor portability for OpenMP.

Postby Rosen » Sun Jun 22, 2014 11:24 pm

Thank you, MarkB.
Rosen
 
Posts: 5
Joined: Tue Jun 10, 2014 9:14 am


Return to Using OpenMP

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests