My C++ code uses boost program_options in main() to read command line options. Later in the code I want to offload some computations on MIC.
Using -offload-option,mic,compiler,"-zdefs", I figured the offload compiler was unable to find definitions for functions program_options. So I thought I could build a version of program_options for the MIC. I tried to pass the -mmic flag to the compiler using instructions here (I used cxxflag) and then referenced the built executable directly:
WHen I now build my code, I get
icpc: warning #10145: no action performed for file '/path/to/boost_1_55_0/stage/lib/libboost_program_options.a'
(same error even if I use -offoad-option,mic,ld instead of -offoad-option,mic,compiler.
1. Am I on the right track here trying to build a library for MIC?
2. How do I get the offload compiler to link statically to the binary I build?