Posts tagged: C++

Random number generation with C++11 and VSL

Benchmarking the speed of random number generation in C++11 with GCC and with VSL and ICC.

Posted on . Tags: C++, GPU

Using Cython with Pypy and Numpy

Load Cython modules from Pypy while also using Numpy.

Posted on . Tags: C++, Python

SDPA with different compilers and linear algebra libraries

GCC, ICC, PGI compilers with BLAS/LAPACK, MKL, and ACML are compared in solving an SDP with SDPA.

Posted on . Tags: Semidefinite programming, C++

Training emergent self-organizing maps on sparse data with Somoclu

Self-organizing maps are computationally expensive to train -- emergent maps are even more so. This post looks at the constraints with sparse data.

Posted on . Tags: Machine learning, C++

CuBlas matrix multiplication with C-style arrays

Getting around Fortran-style array indexing in CuBlas from C code without transponation. Bonus Thrust vector casting added.

Posted on . Tags: C++, GPU

Summing the entries of a matrix using a stencil with Thrust

Thrust-based summing of the elements of a submatrix at a given offset according to a stencil.

Posted on . Tags: C++, GPU

Argmin on the rows of a matrix with Thrust

A detailed description of how to use Thrust reduce by key to calculate the argmins of the rows of a matrix

Posted on . Tags: C++, GPU