Hi,
I have recently installed intel sytem studio trial version and integrated with eclipse. I tried to build my C code with parallelization (-parallel) option, which is available at project properties-> C/C++ Build->Settings->Optimization. But, I am getting the command line remark as shown:
icc: command line remark #10148: option '-parallel' not supported
Please, let me know how to rectify this problem.
Regards,
Manoj
Link Copied
Hi Manoj,
Thanks for raising this issue. I am investigating this issue and would get back to you with an update.
Regards,
Sukruth H V
Hi Sukruth,
Thanks for looking into the issue. I am facing one more issue with using the cilk plus keywords into my C code but I am getting a build error. It is the same Intel System Studio trial version integrated with eclipse Indigo IDE. Please, have a look into the code snippet below and also the corresponding build error
#include "stdio.h"
#include "stdlib.h"
#ifndef __cilk
#include <cilk/cilk_stub.h>
#endif
#include <cilk/cilk.h>
void main()
{
int a,b,c;
int d[20],e[20];
int k;
a = 20, b= 30;
c = a*b;
for (k=0;k<20;k++)
d
cilk_for(k=0;k<20;k++)
e
}
Build Error Occurred:
undefined reference to `__cilkrts_cilk_for_32'
Looking forward to hear from you.
Regards,
Manoj
Hi Manoj,
I was able to successfully build the sample that you have provided both in eclipse and command line. I am pasting the command line results here :-
root@sukruth-desktop:/home/sukruth/Office/Softwares/Eclipse_WS/cilk_test/Debug# ldd ./cilk_test
linux-vdso.so.1 => (0x00007fff4f389000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f01812a3000)
libcilkrts.so.5 => /opt/intel/system_studio_2015.2.050/ipp/../compiler/lib/intel64/libcilkrts.so.5 (0x00007f0181063000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f0180e4d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f0180a88000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f0180883000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f018057f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f0180361000)
/lib64/ld-linux-x86-64.so.2 (0x00007f01815ca000)
root@sukruth-desktop:/home/sukruth/Office/Softwares/Eclipse_WS/cilk_test/Debug# ./cilk_test
38
root@sukruth-desktop:/home/sukruth/Office/Softwares/Eclipse_WS/cilk_test/Debug# cat ../cilk_test.c
/*
* cilk_test.c
*
* Created on: 08-Apr-2015
* Author: root
*/
#include "stdio.h"
#include "stdlib.h"
#ifndef __cilk
#include <cilk/cilk_stub.h>
#endif
#include <cilk/cilk.h>
void main()
{
int a,b,c;
int d[20],e[20];
int k;
a = 20, b= 30;
c = a*b;
for (k=0;k<20;k++)
d
cilk_for(k=0;k<20;k++)
e
printf("%d", e[19]);
}
Could you please try in the command line and let me know if you are facing the same issue?
How to set the compiler in commandline?
source /opt/intel/system_studio_2015.2.050/bin/compilervars.sh intel64
Regards,
Sukruth H V
For more complete information about compiler optimizations, see our Optimization Notice.