Skip to content

Commit 1c316cc

Browse files
committed
minor changes
1 parent 65828ed commit 1c316cc

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ cmake_minimum_required (VERSION 3.0)
44

55
project (SimpleCudaNeuralNet LANGUAGES CXX CUDA)
66

7-
set( CMAKE_BUILD_TYPE "RELEASE" )
7+
set( CMAKE_BUILD_TYPE DEBUG )
88

99
find_package(CUDA REQUIRED)
1010

1111
# -g: for breakpoint debugging in vscode
12-
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall --std=c++11 -g" )
12+
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-parameter -Wall --std=c++11 -g" )
1313
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG" )
1414
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG -O3" )
1515

mnist.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <assert.h>
33
#include <vector>
44
#include <algorithm>
5+
#include <math.h>
56
#include "ffCudaNn.h"
67

78
#if !defined(__FF_WINDOWS__)
File renamed without changes.

0 commit comments

Comments
 (0)