Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

xargc/xargv available in v8?

Intel_C_Intel
Employee
653 Views

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

0 Kudos
4 Replies
Steven_L_Intel1
Employee
653 Views
I'm confused - is this a C question or a Fortran question?
0 Kudos
Intel_C_Intel
Employee
653 Views
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
0 Kudos
Steven_L_Intel1
Employee
653 Views
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.
0 Kudos
Intel_C_Intel
Employee
653 Views
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
0 Kudos
Reply