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 ... :(

Workaround.
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. :)
alessandro
 
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"
test1-forum:test1-forum.cpp
   $(CC) $(CFLAGS) test1-forum.cpp -o test1-forum.o
clean:
   rm test1-forum.o

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

Previous

Return to Using OpenMP

Who is online

Users browsing this forum: No registered users and 8 guests

cron