Skip to content

Instantly share code, notes, and snippets.

View konstantin-azarov's full-sized avatar

Konstantin Azarov konstantin-azarov

View GitHub Profile
@konstantin-azarov
konstantin-azarov / memory_test.cu
Created December 3, 2016 22:18
Tegra K1 CUDA memory benchmark
#include <cuda_runtime.h>
#include <sys/mman.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <chrono>
#include "benchmark/benchmark.h"
#include <assert.h>
#include <iostream>
#include <random>
#include <memory.h>
const int kNCards = 5;
double dp[1 << kNCards][1 << kNCards][5][5];
bool w[1 << kNCards][1 << kNCards][5][5];