This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Dependencies: curl gcc make autoconf | |
# | |
# Changes: 2024-01-03 Emanuele Ruffald | |
# Updated to latest libraries, modified for building openssh, added some if for debugging | |
set -uex | |
umask 0077 | |
ZLIB_VERSION=1.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
author: jbenet | |
os x, compile with: gcc -o testo test.c | |
linux, compile with: gcc -o testo test.c -lrt | |
*/ | |
#include <time.h> | |
#include <sys/time.h> | |
#include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#sudo pip install --upgrade git+https://github.com/dav1dde/glad.git#egg=glad | |
#python main.py --api gl=3.3 --generator=c --out-path=GL | |
find_package(CUDA) | |
find_package(GLFW) | |
include_directories(${GLFW_INCLUDE_DIRS}) | |
include_directories(GL/include) | |
cuda_add_executable(main main.c assert_cuda.c interop.c GL/src/glad.c kernel.cu) | |
target_link_libraries(main ${GLFW_LIBRARY}) |