Skip to content

Instantly share code, notes, and snippets.

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# also see how to do overrides:
# https://gist.github.com/robertmaynard/11297565
# comment from @jowens:
# this clang compiler version must be at least r201031, since that
# fixes a template bug in clang.
# http://llvm.org/bugs/show_bug.cgi?id=18009
# ALSO it must be named "clang"/"clang++", or else cmake goes
# bananas. (Naming it "clang-mp-3.5", the name under which MacPorts
@jowens
jowens / gist:fa855ad411b2ed79c018
Created July 8, 2014 00:53
output of gunrock/cmake
mission-burrito 7635$ cmake ../gunrock
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
@jowens
jowens / gist:8ca8b9ea3f5b40b18a0f
Created July 15, 2014 19:19
mavericks, clang, libstdc++
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
exec_program(uname ARGS -v OUTPUT_VARIABLE DARWIN_VERSION)
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${DARWIN_VERSION})
message(status "Detected Darwin kernel version: ${DARWIN_VERSION}")
if (DARWIN_VERSION GREATER 13)
set(APPLE_MAVERICKS_OR_LATER 1 INTERNAL)
set(CMAKE_CXX_FLAGS -stdlib=libstdc++)
set(CMAKE_C_FLAGS -stdlib=libstdc++)
endif (DARWIN_VERSION GREATER 13)
# current CUDA on Mavericks uses libstdc++, not libc++
@jowens
jowens / gist:24df4f54469c97476a70
Created August 7, 2014 19:15
Alfred 2 sample
Sampling process 1180 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Alfred 2 (pid 1180) every 1 millisecond
Process: Alfred 2 [1180]
Path: /Applications/Alfred.app/Contents/MacOS/Alfred 2
Load Address: 0x100000000
Identifier: com.runningwithcrayons.Alfred-2
Version: 2.3 (264)
Code Type: X86-64
Parent Process: launchd [202]
### Keybase proof
I hereby claim:
* I am jowens on github.
* I am jowens (https://keybase.io/jowens) on keybase.
* I have a public key whose fingerprint is CA63 E8C4 A87C 3C2D 010E B3AF A66A EE93 1BC7 BD42
To claim this, I am signing this object:
This file has been truncated, but you can view the full file.
# 1 "/Users/jowens/Documents/working/gunrock/gunrock/app/topk/topk_app.cu"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 339 "<built-in>" 3
# 1 "<command line>" 1
{
"axes": [
{
"scale": "x",
"title": "Dataset",
"type": "x"
},
{
"scale": "y",
"title": "MTEPS",
@jowens
jowens / datasets.json
Created August 5, 2015 23:22
SNAP datasets, high-level, with JSON
{
"ego-Facebook": {
"Category":"Social networks",
"Type":"Undirected",
"Nodes":"4,039",
"Edges":"88,234",
"Description":"Social circles from Facebook (anonymized)",
},
"ego-Gplus": {
"Category":"Social networks",
{
"axes": [
{
"scale": "x",
"title": "Dataset",
"type": "x"
},
{
"scale": "y",
"title": "MTEPS",
@jowens
jowens / gist:5ee54e7d33e5b8b6538d
Created August 7, 2015 17:44
compiler errors os x / clang
[ 10%] Building CXX object gunrock/CMakeFiles/gunrock.dir/__/externals/moderngpu/src/mgpuutil.cpp.o
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:154:15: error:
no type named 'mt19937' in namespace 'std'
MGPU_RAND_NS::mt19937 mt19937;
~~~~~~~~~~~~~~^
/Users/jowens/Documents/working/gunrock/externals/moderngpu/src/mgpuutil.cpp:173:16: error:
no template named 'uniform_real_distribution' in namespace 'std'; did you
mean 'uniform_int_distribution'?
MGPU_RAND_NS::uniform_real<float> r(min, max);
~~~~~~~~~~~~~~^~~~~~~~~~~~