Skip to content

Instantly share code, notes, and snippets.

Rushi Agrawal rushiagr

Block or report user

Report or block rushiagr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5f80234090cf0dd6a68296e81785e441
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);
View keybase.md

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 Aug 29, 2015
My DevStack local.conf
View 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 Aug 29, 2015
DevStack+MagnetoDB on a clean VM
View magneto.sh
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
View micro-ceph.txt
#
# Copyright (C) 2013 Loic Dachary <loic@dachary.org>
#
# 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 Jan 23, 2014
Things to be done in AWS API of OpenStack, with respect to Cinder (block storage)
View gist:8573862
List of work to be done
-----------------------
CreateVolume - None
CreateSnapshot - None
DeleteVolume - None
DeleteSnapshot - None
AttachVolume None
DetachVolume - None
DescribeVolumes
View enumerate_interfaces.py
# 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
You can’t perform that action at this time.