Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clusters
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nse-configs
nse-builds
clusters
Commits
0802cee5
Commit
0802cee5
authored
1 year ago
by
Debolskiy Andrey
Browse files
Options
Downloads
Patches
Plain Diff
updated and tested on osx
parent
fae950c1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/.gitignore
+8
-0
8 additions, 0 deletions
.idea/.gitignore
cluster_configs/inm-cluster.cmake
+3
-3
3 additions, 3 deletions
cluster_configs/inm-cluster.cmake
cluster_configs/local_osx.cmake
+36
-15
36 additions, 15 deletions
cluster_configs/local_osx.cmake
with
47 additions
and
18 deletions
.idea/.gitignore
0 → 100644
+
8
−
0
View file @
0802cee5
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
This diff is collapsed.
Click to expand it.
cluster_configs/inm-cluster.cmake
+
3
−
3
View file @
0802cee5
...
@@ -16,7 +16,7 @@ endif()
...
@@ -16,7 +16,7 @@ endif()
endif
()
endif
()
if
()
if
()
if
(
${
compiler_lc
}
STREQUAL
"intel"
)
if
(
compiler_lc STREQUAL
"intel"
)
if
(
NO_MPI
)
if
(
NO_MPI
)
set
(
CMAKE_C_COMPILER icc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_C_COMPILER icc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_CXX_COMPILER c++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
set
(
CMAKE_CXX_COMPILER c++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
...
@@ -29,7 +29,7 @@ endif()
...
@@ -29,7 +29,7 @@ endif()
set
(
comp_flags
" -O3 -restrict -alias-const -parallel -funroll-loops -no-ansi-alias -march=core-avx2 -xcore-avx2 "
)
set
(
comp_flags
" -O3 -restrict -alias-const -parallel -funroll-loops -no-ansi-alias -march=core-avx2 -xcore-avx2 "
)
endif
()
endif
()
if
(
${
compiler_lc
}
STREQUAL
"intel_oneapi"
)
if
(
compiler_lc STREQUAL
"intel_oneapi"
)
if
(
NO_MPI
)
if
(
NO_MPI
)
set
(
CMAKE_C_COMPILER icx CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_C_COMPILER icx CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_CXX_COMPILER icpx CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
set
(
CMAKE_CXX_COMPILER icpx CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
...
@@ -42,7 +42,7 @@ endif()
...
@@ -42,7 +42,7 @@ endif()
set
(
comp_flags
" -O3 -no-ansi-alias -funroll-loops -Wno-tautological-constant-compare "
)
set
(
comp_flags
" -O3 -no-ansi-alias -funroll-loops -Wno-tautological-constant-compare "
)
endif
()
endif
()
if
(
${
compiler_lc
}
STREQUAL
"gnu"
)
if
(
compiler_lc STREQUAL
"gnu"
)
if
(
NO_MPI
)
if
(
NO_MPI
)
set
(
CMAKE_C_COMPILER gcc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_C_COMPILER gcc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
set
(
CMAKE_CXX_COMPILER g++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
set
(
CMAKE_CXX_COMPILER g++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
...
...
This diff is collapsed.
Click to expand it.
cluster_configs/local_osx.cmake
+
36
−
15
View file @
0802cee5
...
@@ -5,23 +5,44 @@ set(CUSTOM_NETCDF false)
...
@@ -5,23 +5,44 @@ set(CUSTOM_NETCDF false)
endif
()
endif
()
# adding compiler options for Intel
# adding compiler options for Intel
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Intel"
)
if
(
compiler_lc STREQUAL
"intel"
)
target_compile_options
(
nse-bomex-les
if
(
NO_MPI
)
PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-O3 -restrict -alias-const -no-ansi-alias -parallel -funroll-loops>
set
(
CMAKE_C_COMPILER icc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
)
set
(
CMAKE_CXX_COMPILER c++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
set
(
CMAKE_Fortran_COMPILER ifort CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for serial build
else
()
set
(
CMAKE_C_COMPILER mpiicpc CACHE STRING
"C compiler"
FORCE
)
# C compiler for parallel build
set
(
CMAKE_CXX_COMPILER mpiicpc CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for parallel build
set
(
CMAKE_Fortran_COMPILER mpiifort CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for parallel build
endif
()
set
(
comp_flags
" -O3 -restrict -alias-const -parallel -funroll-loops -no-ansi-alias -march=core-avx2 -xcore-avx2 "
)
endif
()
endif
()
# adding compiler options for Intel oneAPI
if
(
compiler_lc STREQUAL
"intel_oneapi"
)
# --- req.: export I_MPI_CXX=icpx
if
(
NO_MPI
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"IntelLLVM"
)
set
(
CMAKE_C_COMPILER icx CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
target_compile_options
(
nse-bomex-les
set
(
CMAKE_CXX_COMPILER icpx CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-O3 -no-ansi-alias -funroll-loops -Wno-tautological-constant-compare>
set
(
CMAKE_Fortran_COMPILER ifort CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for serial build
)
else
()
set
(
CMAKE_C_COMPILER mpiicc -cc=icx CACHE STRING
"C compiler"
FORCE
)
# C compiler for parallel build
set
(
CMAKE_CXX_COMPILER mpiicpc -cc=icpx CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for parallel build
set
(
CMAKE_Fortran_COMPILER mpiifort -fc=ifx CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for parallel build
endif
()
set
(
comp_flags
" -O3 -no-ansi-alias -funroll-loops -Wno-tautological-constant-compare "
)
endif
()
endif
()
# adding compiler options for GNU
if
(
compiler_lc STREQUAL
"gnu"
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"GNU"
)
if
(
NO_MPI
)
target_compile_options
(
nse-bomex-les
set
(
CMAKE_C_COMPILER gcc CACHE STRING
"C compiler"
FORCE
)
# C compiler for serial build
PRIVATE $<$<COMPILE_LANGUAGE:CXX>:-O3 -fno-strict-aliasing -funroll-loops -no-pie >
set
(
CMAKE_CXX_COMPILER g++ CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for serial build
)
set
(
CMAKE_Fortran_COMPILER gfortran CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for serial build
else
()
set
(
CMAKE_C_COMPILER mpicc CACHE STRING
"C compiler"
FORCE
)
# C compiler for parallel build
set
(
CMAKE_CXX_COMPILER mpicxx CACHE STRING
"CXX compiler"
FORCE
)
# C++ compiler for parallel build
set
(
CMAKE_Fortran_COMPILER mpifort CACHE STRING
"Fortran compiler"
FORCE
)
# Fortran compiler for parallel build
endif
()
endif
()
set
(
comp_flags
" -O3 -fno-strict-aliasing -funroll-loops -mavx2 -no-pie"
)
endif
()
#specify stuff for run-script
set
(
cluster_queue
"normal"
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment