Compiling CUDA Projects with Dynamic Parallelism (VS 2012/13)

Just a quick note. If you are starting from a template C++ CUDA project in VS 2012/2013, calling a kernel from a kernel (dynamic parallelism) would not compile: error : kernel launch from __device__ or __global__ functions requires separate compilation mode To fix this, first make sure your hardware supports it (cc 3.5 or higher) … Continue reading Compiling CUDA Projects with Dynamic Parallelism (VS 2012/13) →

Computing Self-Organizing Maps in a Massively Parallel Way with CUDA. Part 2: Algorithms

In the previous post I spoke briefly about motivations for implementing self-organizing maps in F# using GPU with CUDA. I have finally been able to outperform a single threaded C++ implementation by a factor of about 1.5. This is quite modest, but on the other hand rather impressive since we started out by being 60 … Continue reading Computing Self-Organizing Maps in a Massively Parallel Way with CUDA. Part 2: Algorithms →

Computing Self-Organizing Maps in a Massively Parallel Way with CUDA. Part 1: F#

By 2017, it is expected that GPUs will no longer be an external accelerator to a CPU; instead, CPUs and GPUs will be integrated on the same die with a unified memory architecture. Such a system eliminates some of accelerator architectures’ historical challenges, including requiring the programmer to manage multiple memory spaces, suffering from bandwidth … Continue reading Computing Self-Organizing Maps in a Massively Parallel Way with CUDA. Part 1: F# →

Visualizing Crime with d3: Hooking up Data and Colors, Part 2

In the previous post, we derived a class from BubbleChart and this got us started on actually visualizing some meaningful data using bubbles. There are a couple of things to iron out before a visual can appear. Color Schemes I am using Cynthia Brewer color schemes, available for download in colorbrewer.css. This file is available … Continue reading Visualizing Crime with d3: Hooking up Data and Colors, Part 2 →

Visualizing Crime with d3: How to Make Bubbles and Influence People, Part 1

Previously: Visualizing Crime with d3: Intro Data and Visualization In order to make a bubble chart in d3 (the one similar to the Obama Budget 2013), using CoffeeScript, you need to: Download a few files from my git hub (you'll need coffee/BubbleChartSingle.coffee, css/visuals.css, css/colorbrewer.css) Define a class in a .coffee file: I also define a couple of … Continue reading Visualizing Crime with d3: How to Make Bubbles and Influence People, Part 1 →

Disposable Objects with Computation Expressions

The last post contains the description of a sqlMonad. It also happens to contain a silly and obvious (aren't they all in hindsight) bug. The bug is in implementing the containing CmdSqlBuilder with the IDisposable. While the intent was good (the class wraps resources that should be promptly disposed of - SqlCommand and SqlConnection): there … Continue reading Disposable Objects with Computation Expressions →