-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding some debug/cmake settings for vscode
- Loading branch information
Showing
5 changed files
with
123 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Fortran Launch (GDB)", | ||
"name": "(gdb) Launcher", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/build/bin/cato.x", | ||
"args": [ | ||
"input.ini" | ||
], | ||
"miDebuggerPath": "/usr/bin/gdb", | ||
"stopAtEntry": false, | ||
"cwd": "${workspaceFolder}/tests/integrated/double_shear", | ||
"cwd": "${workspaceFolder}/tests/integrated/sod_1d", | ||
"environment": [], | ||
"externalConsole": true, | ||
// "preLaunchTask": "/usr/local/bin/gfortran-9" | ||
}, | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "shell", | ||
"label": "Config Debug GCC", | ||
"command": "cmake", | ||
"args": [ | ||
"..", | ||
"-DCMAKE_BUILD_TYPE='Debug'", | ||
"-DENABLE_TESTING=NO", | ||
"-DUSE_OPENMP=YES", | ||
"-DENABLE_PROFILING=NO", | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}/build", | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
}, | ||
{ | ||
"type": "shell", | ||
"label": "Build", | ||
"command": "make", | ||
"args": [ | ||
"-j" | ||
], | ||
"options": { | ||
"cwd": "${workspaceFolder}/build", | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
buildType: | ||
default: debug | ||
choices: | ||
debug: | ||
short: Debug | ||
long: Emit debug information | ||
buildType: Debug | ||
release: | ||
short: Release | ||
long: Optimize generated code | ||
buildType: Release | ||
asan: | ||
short: Asan | ||
long: Instrument with Address Sanitizer | ||
buildType: Asan | ||
tsan: | ||
short: Tsan | ||
long: Instrument with Thread Sanitizer | ||
buildType: Tsan | ||
|
||
# EnableOpenMP: | ||
# default: "yes" | ||
# short: Enable OpenMP Testing | ||
# choices: | ||
# yes: | ||
# short: OpenMP | ||
# long: Enable OpenMP | ||
# settings: | ||
# USE_OPENMP: yes | ||
# no: | ||
# short: OpenMP | ||
# long: Disable OpenMP | ||
# settings: | ||
# USE_OPENMP: no | ||
EnableOpenMP: | ||
default: yes | ||
choices: | ||
yes: | ||
short: With_OpenMP | ||
long: Enable PFUnit Unit testing | ||
settings: | ||
USE_OPENMP: YES | ||
no: | ||
short: Without_OpenMP | ||
long: Disable PFUnit Unit testing | ||
settings: | ||
USE_OPENMP: NO | ||
|
||
EnableTesting: | ||
default: no | ||
choices: | ||
yes: | ||
short: With_PFUnit | ||
long: Enable PFUnit Unit testing | ||
settings: | ||
DENABLE_TESTING: YES | ||
no: | ||
short: Without_PFUnit | ||
long: Disable PFUnit Unit testing | ||
settings: | ||
DENABLE_TESTING: NO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters