Skip to content

Instantly share code, notes, and snippets.

View fabiencastan's full-sized avatar

Fabien Castan fabiencastan

View GitHub Profile
@fabiencastan
fabiencastan / CUDA_Compilers.md
Created August 4, 2018 15:34 — forked from ax3l/CUDA_Compilers.md
CUDA Compilers

In general, check the host_config.h file to find out which versions are supported. Sometimes it is possible to hack the requirements there to get some newer versions working, too :)

Thrust version can be found in $CUDA_ROOT/include/thrust/version.h.

Release notes for CUDA >= 5.5 are stored under http://developer.download.nvidia.com/compute/cuda/X_Y/rel/docs/CUDA_Toolkit_Release_Notes.pdf

nvcc

Latest, officical Compiler requirements: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

@fabiencastan
fabiencastan / test_qmlStateBindingWithDrag.qml
Last active December 10, 2015 09:39
Simple example to show how to move an object with a drag target on a MouseArea without breaking the model link for (x, y) values. The solution is States. I use StateGroups because it's a good pratice to use StateGroups instead of the default state when creating a reusable component. There is no specific reason for this example.
import QtQuick 1.1
Rectangle {
id: mainWindowId
implicitWidth: 500
implicitHeight: 500
anchors.fill: parent
color: "black"