|
[Sponsors] |
running gfortran + openmp on OS X El Capitan 10.11.15 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 14, 2016, 02:04 |
running gfortran + openmp on OS X El Capitan 10.11.15
|
#1 |
New Member
Ali
Join Date: May 2016
Location: Sydney, Australia
Posts: 19
Rep Power: 9 |
I am running gfortran with openmp on my macbook pro (OS X El Capitan 10.11.15). My code runs without -fopenmp, perfectly. However when I want to run it in parallel threads, it recognizes the number of threads but it doesn't go correctly through a loop. here is an example of the outpu:
Hello I am thread 4 Hello I am thread 1 Hello I am thread 2 Hello I am thread 3 Hello I am thread 5 Hello I am thread 6 Hello I am thread 0 Hello I am thread 7 Number of threads = 8 Number of threads2 = 8 nstep,time 0 Illegal instruction: 4 I tried these compiling command : gfortran -g -o turb -O -fbacktrace -fopenmp -ffixed-line-length-none -fdefault-real-8 and gfortran -g -p -o turb -Wall -O2 -fbacktrace -fopenmp -Wl,-stack_size,0x40000000,-stack_addr,0xf0000000 -fbounds-check -ffixed-line-length-none -fdefault-real-8 -fno-align-commons Both give the same error message. and here is the version I use: $ gfortran --version GNU Fortran (GCC) 6.1.0 Copyright (C) 2016 Free Software Foundation, Inc. Any help is highly appreciated. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ANSYS Licensing Problem, Processes Running but Showing as Not Running | penguinman | ANSYS | 3 | September 27, 2016 13:30 |
Something weird encountered when running OpenFOAM in parallel on multiple nodes | xpqiu | OpenFOAM Running, Solving & CFD | 2 | May 2, 2013 04:59 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 09:38 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 07:52 |