- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yesterday when I ran the following line in terminal: icc -mkl -c -xAVX optimizedV4.c
I was able to get back: optimizedV4.o
and: a.out
Today when I edited the c code, simply changing a loop variable, I only got the object file. No errors were thrown, except when typing ./a.out that there is no such file or directory.
Update:
This happened after I tried calling the compiler through a python script:
from subprocess import call
call(["icc", "-mkl", "-c", "-xAVX", "optimizedV4.c"])
I since uninstalled parallel studio and reinstalled it, I even copied the code into a file in /opt/intel/ and tried to compile it there, but I still did not get an a.out file from doing so. (No errors were given either, and the .o file was still created just fine.)
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note: this happened after I ran a python program with:
from subprocess import call
call(["icc", "-mkl", "-c", "-xAVX", "optimizedV4.c"])
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note (2): I uninstalled parallel studio and reinstalled it, then ran that command without the -mkl, and I tried running the command inside the /opt/intel directory itself calling the same code from my personal directory and using sudo to make sure all permissions were satisfied.
I still got the same effect of no error messages being thrown, but only optimizedV4.o was created, not a.out!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-c is to compile to object (.o) only.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page