- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have written a small parent/child program structure that makes use of ZeroMQ and OpenMP. Until recently I have used gfortran to compile the program but I am now moving to iFort. The code can be found here. However, when compiling using the following makefile (not currently in the repository):
FC=ifort -O2 -openmp LIBS=libf77zmq.a -lzmq EXE=hwserver hwclient .PHONY: default default: $(EXE) %: %.f f77_zmq.h libf77zmq.a $(FC) $*.f -o $@ $(LIBS) -ffree-form clean: $(RM) -f -- $(EXE) *.ipc
I get plenty of errors regarding ampersands. gfortran complained some about them as well, but they only resulted in warnings. A snippet of the output looks as follows:
ifort -02 -openmp hwserver.f -o hwserver libf77zmq.a -lzmq fortcom: Error: solve.i, line 324: Syntax error, found '&' when expecting one of: <IDENTIFIER> PARAMETER ( INTS_WORDS = 1, & ------------------------------------------------------^ fortcom: Error: solve.i, line 325: Syntax error, found '&' when expecting one of: <IDENTIFIER> & REALS_WORDS = 2, & ------------------------------------------------------^
and so it goes on...
I have understood that this is likely caused by ZeroMQ making use of Fortran77 standards, but as aforementioned this turned out to not be a problem when I used gfortran. Fully aware that it might come down to me having to rewrite the ZMQ-bindings, I would like to hear from you first to see if there's another way.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add -free to your ifort command line.
That's our equivalent to the gfortran -ffree-form.
--Lorri
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add -free to your ifort command line.
That's our equivalent to the gfortran -ffree-form.
--Lorri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Lorri Menard (Intel) wrote:
Add -free to your ifort command line.
That's our equivalent to the gfortran -ffree-form.
--Lorri
Thank you Lorri, this solved the ampersand problem! The compilation now exits with only warnings.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page