Author: Erik Smistad

4

OpenCL bugs

OpenCL is a great framework, however, AMD’s, NVIDIA’s and Apple’s OpenCL compilers are not. I have worked over 4 years with OpenCL and I have experienced a lot of bugs. Here I present a...

Memory-mapped files using the boost library 12

Memory-mapped files using the boost library

The objective of memory mapping files is to increase I/O performance. Memory mapping a file creates a pointer to a segment in virtual memory and the actual loading is performed by the Operating System...

Measuring runtime in milliseconds using the C++ 11 chrono library 1

Measuring runtime in milliseconds using the C++ 11 chrono library

I have been playing around with the new C++ 11 standard. It includes a nice new library called chrono which includes some useful clocks and timers. Below is an example of some macros you...

Getting started with Google Test (GTest) on Ubuntu 66

Getting started with Google Test (GTest) on Ubuntu

Google test is a framework for writing C++ unit tests. In this short post, I explain how to set it up in Ubuntu. Start by installing the gtest development package: sudo apt-get install libgtest-devsudo...