diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cd42fc4 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,102 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "mnist/main", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/out/main", + "args": [ + "train", + "--images", + "${workspaceFolder}/data/mnist/train-images-idx3-ubyte", + "--labels", + "${workspaceFolder}/data/mnist/train-labels-idx1-ubyte", + "--out", + "${workspaceFolder}/.test-cache/reseau.bin" + ], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + } + ], + "preLaunchTask": "build" + }, + { + "name": "mnist/preview", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/out/preview", + "args": [ + "images", + "labels" + ], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + } + ], + "preLaunchTask": "build" + }, + { + "name": "cnn/main", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/out/cnn_main", + "args": [], + "stopAtEntry": true, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": false + } + ], + "preLaunchTask": "build" + }, + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [ + "" + ], + "stopAtEntry": false, + "cwd": "/home/augustin64/Documents/tipe/projet-tipe", + "environment": [], + "program": "/home/augustin64/Documents/tipe/projet-tipe/build/Debug/outDebug", + "internalConsoleOptions": "openOnSessionStart", + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "externalConsole": false, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..35d9ce9 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,60 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: gcc générer le fichier actif", + "command": "/usr/bin/gcc", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${workspaceFolder}/out/${fileBasenameNoExtension}", + "-lm", + "-lpthread", + "-std=c99", + "-Wall", + "-Wextra" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Tâche générée par le débogueur." + }, + { + "type": "build", + "label": "C: gcc générer le fichier actif", + "command": "gcc", + "args": [ + "-g", + "${file}", + "-o", + "${workspaceFolder}/out/${fileBasenameNoExtension}", + "-lm", + "-lpthread", + "-std=c99", + "-Wall", + "-Wextra" + ], + "options": { + "cwd": "${fileDirname}" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "Tâche générée par le débogueur." + } + ], + "version": "2.0.0" +} \ No newline at end of file