Skip to content

Instantly share code, notes, and snippets.

View plasma.fbs
#include "flatbuffers/flatbuffers.h"
#include "format/plasma_generated.h"
extern "C" {
#include "plasma_protocol.h"
#include "io.h"
#define FLATBUFFER_BUILDER_DEFAULT_SIZE 1024
View temp_hyperband.py
import collections
import numpy as np
import ray
ray.init()
def gen_random_hyperparams():
return (np.random.normal(),)
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(numbuf)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
# Make libnumbuf.so look for shared libraries in the folder libnumbuf.so is in.
set(CMAKE_INSTALL_RPATH "$ORIGIN/")
set(CMAKE_MACOSX_RPATH 1)
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
if(FALSE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message(STATUS "Trying custom approach for finding Python.")
# Start off by figuring out which Python executable to use.
find_program(CUSTOM_PYTHON_EXECUTABLE python)
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(testfindcmake29849238)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message(STATUS "Trying custom approach for finding Python.")
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(testing394233)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs ${PYTHONLIBS_VERSION_STRING} EXACT REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message(STATUS "Trying custom approach for finding Python.")
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(cmaketest)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs ${PYTHONLIBS_VERSION_STRING} EXACT REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message("-- -- Trying custom approach for finding Python.")
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(photon)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message("-- -- Trying custom approach for finding Python.")
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
project(testexample)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
message("-- -- Trying custom approach for finding Python.")
View CMakeLists.txt
cmake_minimum_required(VERSION 2.8)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
if(NOT APPLE)
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
set(CUSTOM_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
else()
find_program(CUSTOM_PYTHON_EXECUTABLE python)
You can’t perform that action at this time.