Skip to content

aditimjoshi/Neural_Network_CUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Neural Network in C++ with CUDA

Overview

This project implements a simple fully connected neural network (FCNN) in C++ for classifying images from the MNIST dataset. It includes an input layer, one hidden layer, and an output layer. The implementation supports both CPU and CUDA-based execution, allowing users to run the network with or without GPU acceleration.

The CUDA implementation assigns each neuron to a separate GPU thread to maximize computational efficiency and reduce training time.

Setup

# Clone the repository
git clone https://github.com/yourusername/Neural_Network_CUDA.git
cd Neural_Network_CUDA

Running on CPU

g++ -o driver driver.cpp
./driver

Running on GPU

nvcc -o driver_cuda driver_cuda.cu
./driver_cuda

About

Neural Network in C++ supporting both CPU and CUDA based execution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published