Logical, because the amount of work that each iteration contains depends on the value of the exiting iteration. I didn't try for more than 8 threads, but maybe I could have had a faster program if I had tried it.Īs for the best scheduling policy, in this case it's dynamic scheduling. #pragma omp parallel for private(iter,a,b) schedule(dynamic, 64) I have a dual core machine, and the optimal combination in my case was:įor max_iter = 256 (to have 256 levels of gray), I wrote: I read somewhere that depending on the number of cores of the computer, there's an optimal combination of the number of threads, the scheduling policy and the chunk size. I'm not sur whether it's correct or not, but it seems to me logical. The result is : the bigger the numbre of threads id, the faster the program is executed. I compared the execution times when choosing static and dynamic scheduling (in both scheduling patterns I gave the threads the same number of iterations to process). #pragma omp parallel for private(iter,a,b) schedule(, ) Now, that's a simple program, but one has to be careful when adding the openmp pragma because a segmentation fault can easily araise (and that's what happened to me) Int mandelbrot (float a, float b, int max_iter) (I you want to get an idea about what it is you can go to http ) (I could have done the same thing using gcc) Good luck for your project ?In my assignment, I had to compare the execution time of programs implemented : All rights reserved.Ībhishek rukawa No hurry,buddy. Source /opt/intel/composer_xe_2013_sp1.0.080/bin/compilervars.sh intel64Ĭopyright (C) 1985-2013 Intel Corporation. Source /opt/intel/bin/compilervars.sh intel64 (I got the command from the following article : )Īnd composed the following commands one after the other:
CONFIGURATION FOR INTEL C COMPILER ICC SOFTWARE
Now I did as the article said without changing anythingģ - After the completion of the installation, I composed this command :Īnd replaced by : /opt/intel/composer_2013_sp1.0.080 (because that's where I have the intel compiler installed) and by : intel64 (because I have an amd64) Software Development Tools (Compilers, Debuggers, Profilers & Analyzers) Intel C++ Compiler How do I run icc, and have it find a usable licence on the Intel AI Devcloud cluster and compile things, I have had no luck on the login node or a com.
CONFIGURATION FOR INTEL C COMPILER ICC ARCHIVE
The thing is, in my first trial I haven't done this :Īnd I haven't extracted the archive in /tmp,
![configuration for intel c compiler icc configuration for intel c compiler icc](https://www.hiperism.com/Intel/pix/STREAM_on_Linux.gif)
Goodluck,I hope your problem gets solve asap.At last! it got solved.Ģ- I followed this : to installl it again I am off now, I'll be coming online back tomorrow, If you have no problem then we can ping eachother using teamviewer, so I can solve the problem easily. Abhishek RawalI am quite disappointed as I couldn't help you to compile, because it's very easy shit & I have done this few timesback then =/