- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm confused - is this a C question or a Fortran question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
thanks for your help,
-Chris
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page