xargc/xargv available in v8?

xargc/xargv available in v8?

I'm working on an MPI profiler. With version 7.x, I was able to get at command-line arguments in C routines by accessing xargc/xargv. I do not see these symbols available with v8 and have been using fortran routines with iargc/getarg to get at the command line. Are there xargc/xargv equivalents in v8?

thanks,

-Chris

5 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

I'm confused - is this a C question or a Fortran question?

Steve - Intel Developer Support

I suppose the question is:

How do you access the command-line arguments of a Fortran application (compiled with fortran compiler version 8) from a C routine?

For Intel Fortran Compiler version 7.x, it appears that C argc/argv values can be obtained from global fortran symbols xargc/xargv. I do not see xargc/xargv in fortran executables compiled with version 8, however, if there are similar symbols that point to the same data as xargc/xargv, I would appreciate if you would let me know, as this makes it easier for me to provide Intel Fortran v8 support in my profiling tool.

thanks,

-Chris

Ok. No, the Fortran library is completely different for 8.0 and this data is not exposed. I suggest you call into Fortran and use the argument intrinsics provided.

Steve - Intel Developer Support

That is indeed what I am doing currently, but I just wanted to make sure there wasn't an easier way.

thanks for your help,

-Chris

Leave a Comment

Please sign in to add a comment. Not a member? Join today