Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sfx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
inmcm-mirror
sfx
Commits
380b3805
Commit
380b3805
authored
1 year ago
by
Debolskiy Andrey
Browse files
Options
Downloads
Patches
Plain Diff
added data-copy to CMAKE and passthrough for nan-check
parent
10359d3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.idea/git_toolbox_prj.xml
+15
-0
15 additions, 0 deletions
.idea/git_toolbox_prj.xml
CMakeLists.txt
+16
-5
16 additions, 5 deletions
CMakeLists.txt
with
31 additions
and
5 deletions
.idea/git_toolbox_prj.xml
0 → 100644
+
15
−
0
View file @
380b3805
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"GitToolBoxProjectSettings"
>
<option
name=
"commitMessageIssueKeyValidationOverride"
>
<BoolValueOverride>
<option
name=
"enabled"
value=
"true"
/>
</BoolValueOverride>
</option>
<option
name=
"commitMessageValidationEnabledOverride"
>
<BoolValueOverride>
<option
name=
"enabled"
value=
"true"
/>
</BoolValueOverride>
</option>
</component>
</project>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
16
−
5
View file @
380b3805
...
...
@@ -6,6 +6,10 @@ option(INCLUDE_CXX "CXX build in mode" OFF)
project
(
INMCM_sfx
)
enable_language
(
Fortran
)
if
(
SFX_CHECK_NAN
)
add_definitions
(
-DSFX_CHECK_NAN
)
endif
()
if
(
INCLUDE_CXX
)
set
(
RUN_MACRO -DINCLUDE_CXX
)
endif
(
INCLUDE_CXX
)
...
...
@@ -37,7 +41,7 @@ set(SOURCES_F
srcF/FCWrapper.F90
)
set
(
HEADERS_F
set
(
HEADERS_F
includeF/sfx_def.fi
)
...
...
@@ -68,16 +72,16 @@ if(INCLUDE_CUDA)
endif
(
INCLUDE_CUDA
)
if
(
INCLUDE_CXX OR INCLUDE_CUDA
)
set
(
MEMPROC_SOURCES_CXX
set
(
MEMPROC_SOURCES_CXX
srcCXX/MemoryProcessing.cpp
)
set
(
MEMPROC_HEADERS_CXX
set
(
MEMPROC_HEADERS_CXX
includeCXX/MemoryProcessing.h
includeCXX/TemplateParameters.h
)
if
(
INCLUDE_CUDA
)
set
(
MEMPROC_SOURCES_CU
set
(
MEMPROC_SOURCES_CU
srcCU/MemoryProcessing.cu
)
set
(
MEMPROC_HEADERS_CU
...
...
@@ -91,4 +95,11 @@ set(SOURCES ${MEMPROC_HEADERS_CU} ${MEMPROC_SOURCES_CU} ${MEMPROC_HEADERS_CXX} $
set
(
CMAKE_Fortran_FLAGS
" -cpp "
)
add_executable
(
drag
${
SOURCES
}
)
add_definitions
(
${
RUN_MACRO
}
)
set_property
(
TARGET drag PROPERTY LINKER_LANGUAGE Fortran
)
\ No newline at end of file
set_property
(
TARGET drag PROPERTY LINKER_LANGUAGE Fortran
)
#copy data on post build
add_custom_command
(
TARGET drag POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
CMAKE_SOURCE_DIR
}
/data
${
CMAKE_CURRENT_BINARY_DIR
}
/data
)
\ 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