Skip to content

Instantly share code, notes, and snippets.

View smartbitcoin's full-sized avatar

SmartBitCoin smartbitcoin

View GitHub Profile
@smartbitcoin
smartbitcoin / probe_bw.cu
Created February 10, 2016 03:52 — forked from allanmac/probe_bw.cu
Measure achieved bandwidth when performing 128, 256 or 512 byte transactions on a multi-megabyte extent. This appears to reproduce @Genoil's original findings: https://devtalk.nvidia.com/default/topic/878455/cuda-programming-and-performance/gtx750ti-and-buffers-gt-1gb-on-win7
// -*- compile-command: "nvcc -m 64 -arch compute_30 -Xptxas=-v -o probe_bw probe_bw.cu"; -*-
//
#include <stdio.h>
#include <stdint.h>
//
// choose a reasonable block size
//