This file contains hidden or 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
// | |
// Compilation: g++ -std=c++11 -o a.exe sudoku-3x3.cpp | |
// Run: ./a.exe "7 1 8 19 5 812 5 372 7 4 652 3 938 5 14 2 5 7" | |
// In order to solve the following board: | |
// | |
// 7 0 1 0 0 0 0 0 8 | |
// 0 0 0 1 9 0 0 0 5 | |
// 0 0 0 0 0 8 1 2 0 | |
// | |
// 0 0 0 0 5 0 3 7 2 |
This file contains hidden or 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
// Compiling and running this program: | |
// nvcc -std=c++11 device-prop-test.cu && ./a.out | |
#include <chrono> | |
#include <iostream> | |
using namespace std; | |
#define CUDA_CHECK(call) \ | |
do { \ | |
cudaError_t status = call; \ | |
if(status != cudaSuccess) { \ |
NewerOlder