Makefile : problems using -fopenmp

General OpenMP discussion

Re: Makefile : problems using -fopenmp

Postby alessandro » Wed Jun 12, 2013 11:02 pm

Now i'm on the multi-core computer and the problem remain as before at this point i think is present some bug on the:

$ make -version
GNU Make 3.81

since my only multi-core pc is an old amd dual-core i don't known if that problem is present only on dual-core pc or on every multi-core pc, the difference is important for any attempt to report a similar tricky bug ... :(

On the multi-core Pc use only:
$ make test-forum1
the file with extension .o isn't generated (patience) but at least the executable is built.
And if the worst is to come on the single core set the program using two threads although this would not allow me to do any tests to the level of performance improvement obtained after the addition of openmp.

It was important for me the help for the makefile because I would like to make changes to a program built using makefiles.

Thanks for the help. :)
Posts: 26
Joined: Tue Jun 11, 2013 2:14 am

Re: Makefile : problems using -fopenmp

Postby alessandro » Sun Jun 16, 2013 12:08 pm

I'm made some minor change on the makefile:
Code: Select all
CC = g++
CFLAGS = -fopenmp
all: test1-forum
   @echo "Done"
   $(CC) $(CFLAGS) test1-forum.cpp -o test1-forum.o
   rm test1-forum.o

and now work generating even on the multi-core using:
make all
make test1-forum
Posts: 26
Joined: Tue Jun 11, 2013 2:14 am


Return to Using OpenMP

Who is online

Users browsing this forum: No registered users and 2 guests