Skip to content

Instantly share code, notes, and snippets.

View ahundt's full-sized avatar

Andrew Hundt ahundt

View GitHub Profile
@djsutherland
djsutherland / fix_paths.sh
Last active February 13, 2016 22:50
Patch up Caffe's paths to avoid need for DYLD_FALLBACK_LIBRARY_PATH on OSX El Capitan, which doesn't really support it anymore
#!/bin/bash
CUDA_LIB_DIR=/usr/local/cuda/lib
CUDA_VERSION=7.5
CUDA_LIBS="cublas cudart curand"
CUDNN_LIB_DIR=/usr/local/cuda/cudnn-3/lib
CUDNN_VERSION=7.0
CUDNN_LIBS="cudnn"
@zchee
zchee / How-to-building-CUDA7.5-with-clang7.0.0.md
Last active August 15, 2017 23:51
How to compiling use CUDA nvcc with Xcode7.0 clang 7.0.0

CUDA7.5

Now, CUDA did not compatible Apple clang 7.0.0 also Xcode7.0.

e.g,

> cd /Developer/NVIDIA/CUDA-7.5/samples/0_Simple/asyncAPI

> clang -v
Apple LLVM version 7.0.0 (clang-700.1.75)
@willurd
willurd / web-servers.md
Last active May 16, 2026 19:21
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@raibread
raibread / torch_install.sh
Last active February 4, 2017 19:08
This is a oneline torch7 installation script (including dependencies) for macosx -- Adapted from: https://github.com/clementfarabet/torchinstall/blob/master/install -- It has been tested in parts but not as a whole.
#!/usr/bin/env bash
#################################################################################################
# This script installls Torch7 and it's various dependencies.
#
# The script is adapted from:
# https://github.com/clementfarabet/torchinstall/blob/master/install
#
# The above didn't quite work for me on macosx (10.8.2) so the following adjustments were made:
# (1) install gcc 4.7.2 and set as compilers used in Torch build so open OpenMP works
@yamaya
yamaya / xcode-clang-vers
Last active May 12, 2026 09:44
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix