Skip to content

Instantly share code, notes, and snippets.

diff --git a/include/contrib/moderngpu/include/device/intrinsics.cuh b/include/contrib/moderngpu/include/device/intrinsics.cuh
index a601443..c212a38 100644
--- a/include/contrib/moderngpu/include/device/intrinsics.cuh
+++ b/include/contrib/moderngpu/include/device/intrinsics.cuh
@@ -112,7 +112,7 @@ __device__ __forceinline__ float shfl_up(float var,
unsigned int delta, int width = 32) {
#if __CUDA_ARCH__ >= 300
- var = __shfl_up(var, delta, width);
+ var = __shfl_up_sync(0xFFFFFFFF, var, delta, width);

Keybase proof

I hereby claim:

  • I am rushiagr on github.
  • I am rushiagr (https://keybase.io/rushiagr) on keybase.
  • I have a public key ASDVDX-7yqG_P_JxA3_k5IuSelKLg3X8Fxkx8N7RI1lHIgo

To claim this, I am signing this object:

@rushiagr
rushiagr / local.conf
Last active August 29, 2015 14:09
My DevStack local.conf
[[local|localrc]]
ADMIN_PASSWORD=nova
DATABASE_PASSWORD=nova
RABBIT_PASSWORD=nova
SERVICE_PASSWORD=nova
SERVICE_TOKEN=s0m3-r4nd0m-53rv1c3-t0k3n
# MagnetoDB
ENABLED_SERVICES=key,mysql,rabbit,tempest,magnetodb
@rushiagr
rushiagr / magneto.sh
Last active August 29, 2015 14:08
DevStack+MagnetoDB on a clean VM
sudo apt-get install --assume-yes git
git clone https://github.com/openstack-dev/devstack.git
git clone https://github.com/stackforge/magnetodb.git
cp magnetodb/contrib/devstack/lib/magnetodb devstack/lib
cp magnetodb/contrib/devstack/extras.d/90-magnetodb.sh devstack/extras.d
cat > devstack/local.conf <<EOF
#
# Copyright (C) 2013 Loic Dachary <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@rushiagr
rushiagr / gist:8573862
Created January 23, 2014 06:27
Things to be done in AWS API of OpenStack, with respect to Cinder (block storage)
List of work to be done
-----------------------
CreateVolume - None
CreateSnapshot - None
DeleteVolume - None
DeleteSnapshot - None
AttachVolume None
DetachVolume - None
DescribeVolumes
@rushiagr
rushiagr / enumerate_interfaces.py
Last active December 31, 2015 04:19 — forked from pklaus/enumerate_interfaces.py
Python version info
# Use those functions to enumerate all interfaces available on the system using Python.
# found on <http://code.activestate.com/recipes/439093/#c1>
# Works with Python 2.7
# Python 3.3's 'socket' module takes care of many of the functionalities coded here
import socket
import fcntl
import struct
import array