Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/master does not compile with -openmp #7

Closed
nikizadehgfdl opened this issue Oct 3, 2014 · 4 comments
Closed

dev/master does not compile with -openmp #7

nikizadehgfdl opened this issue Oct 3, 2014 · 4 comments

Comments

@nikizadehgfdl
Copy link
Contributor


ftn -D_USE_GENERIC_TRACER -DINTERNAL_FILE_NML -g -traceback -D_FILE_VERSION="`git-version-string /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90`"  -fpp -Wp,-w -I/opt/cray/netcdf/4.2.0/intel/120/include -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -i4 -r8 -nowarn -sox -I/opt/cray/netcdf/4.2.0/intel/120/include -O2 -debug minimal -fp-model precise -override-limits -openmp -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/ocean_shared -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/fms  -c -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/config_src/dynamic -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/framework /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(132): error #5082: Syntax error, found '*' when expecting one of: <IDENTIFIER> <CHAR_CON_KIND_PARAM> <CHAR_NAM_KIND_PARAM> <CHARACTER_CONSTANT> /
!$OMP                               drag_rate,Rho0,MEKE_decay,sdt_damp,cdrag2, *
-------------------------------------------------------------------------------^
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(133): error #7844: Invalid directive.
!$OMP                               bottomFac2) &
^
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(134): error #5082: Syntax error, found 'PRIVATE' when expecting one of: PARALLELDO PARALLELSECTIONS PARALLELWORKSHARE PARALLEL SINGLE CRITICAL MASTER TASK ...
!$OMP                       private(ldamping)
----------------------------^
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(134): error #7644: The statement or directive following this OpenMP* directive is incorrect.
!$OMP                       private(ldamping)
----------------------------^
compilation aborted for /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90 (code 1)
@nikizadehgfdl
Copy link
Contributor Author

typo '*' instead of '&' .
But after fixing that I get:

ftn -D_USE_GENERIC_TRACER -DINTERNAL_FILE_NML -g -traceback -D_FILE_VERSION="`git-version-string /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90`"  -fpp -Wp,-w -I/opt/cray/netcdf/4.2.0/intel/120/include -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -i4 -r8 -nowarn -sox -I/opt/cray/netcdf/4.2.0/intel/120/include -O2 -debug minimal -fp-model precise -override-limits -openmp -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/ocean_shared -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/fms  -c -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/config_src/dynamic -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/framework /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(155): error #7644: The statement or directive following this OpenMP* directive is incorrect.
!$OMP do
------^
compilation aborted for /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90 (code 1)
make[1]: *** [MOM_MEKE.o] Error 1

@nikizadehgfdl
Copy link
Contributor Author

It seems that !$OMP does not like it when its do loop is commented out !

Should I push the fix?

< !$OMP
<             ! do
>             !!$OMP
>             !do

@nikizadehgfdl
Copy link
Contributor Author

Sorry, this was meant to go under MOM6 not SIS2.
Closing.

@Zhi-Liang
Copy link
Contributor

Niki,

Commented out "!$OMP do" is the right fix.

Zhi

On Fri, Oct 3, 2014 at 3:08 PM, Niki Zadeh notifications@github.com wrote:

typo '*' instead of '&' .
But after fixing that I get:

ftn -D_USE_GENERIC_TRACER -DINTERNAL_FILE_NML -g -traceback -D_FILE_VERSION="git-version-string /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90" -fpp -Wp,-w -I/opt/cray/netcdf/4.2.0/intel/120/include -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -i4 -r8 -nowarn -sox -I/opt/cray/netcdf/4.2.0/intel/120/include -O2 -debug minimal -fp-model precise -override-limits -openmp -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/ocean_shared -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/ncrc2.intel-repro-openmp/exec/fms -c -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/config_src/dynamic -I/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/framework /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90
/lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90(155): error #7644: The statement or directive following this OpenMP* directive is incorrect.
!$OMP do
------^
compilation aborted for /lustre/f1/Niki.Zadeh/testing_20141003/MOM6_SIS_libs_compile/src/mom6/src/parameterizations/lateral/MOM_MEKE.F90 (code 1)
make[1]: *** [MOM_MEKE.o] Error 1


Reply to this email directly or view it on GitHub
#7 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants