Using CUDA and two GPUs to run Bulls and Cows.
This project implements the classic Bulls and Cows game optimized with CUDA to leverage GPU acceleration. It supports running on two GPUs for enhanced performance.
- CMake (version 3.18 or higher)
- NVIDIA CUDA Toolkit installed
- Compatible NVIDIA GPUs (at least 1 for dual-GPU usage)
- C++17 compatible compiler
This project uses CMake to configure and build the code. You can use the provided Makefile to simplify building and running.
$ makeThis will build the project inside a build/ directory and run the executable automatically.
Other useful commands
- Build only (no run):
$ make build
- Run only
$ make run
- Clean build directory:
$ make clean
.
├── CMakeLists.txt
├── Makefile
├── include/
├── src/
│ ├── main.cpp
│ ├── player.cpp
│ ├── utils.cpp
│ └── cuda_utils.cu
└── build/ # Build output directory (auto-generated)