Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

FPP and IFC

Intel_C_Intel
Employee
945 Views
I am trying to compile a project written in CVF with the IFC trial version. I have one problem so far, in my code I use TR15581 arrays (allocatable derived types), which I know are not f95, so I isolated them using #ifdef. For example:

program ifl_toy
TYPE test
#ifdef CVF
INTEGER, ALLOCATABLE, DIMENSION(:) :: A
#else
INTEGER, POINTER, DIMENSION(:) :: A
#endif
END TYPE test
print *, 'hello world'
end program ifl_toy

but while I can get this to compile using the command
ifl ifltoy.f90 /Qfpp2
how would I pass in an fpp command to the compilation (which I need to do in the real project). Say I _want_ to define CVF in the above sample, from the docs, I would guess that I would issue
ifl ifltoy.f90 /Qfpp2 /Qoption,fpp,CVF
but this fails. How would I achieve it?

Many thanks,
matt.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
945 Views
If I understand what you want, /DCVF would seem to be the proper approach.

Steve
0 Kudos
Intel_C_Intel
Employee
945 Views
Perfect.

Thanks, again, Steve.

BTW, IMHO the VF compiler options are MUCH clearer than the IFC options.

Matt.
0 Kudos
Reply