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
#include <CL/cl.h> | |
#include <dlfcn.h> | |
#include <type_traits> | |
namespace weakbindgen { | |
template<typname T> using id = T; | |
} | |
using namespace weakbindgen; | |
namespace weakbindgen { |
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
#include <CL/sycl.hpp> | |
#include <iostream> | |
class init_a; | |
class init_b; | |
class matrix_add; | |
using namespace cl::sycl; | |
// Size of the matrices |
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
#include <iostream> | |
#include <memory> | |
#include <cmath> | |
#include <unistd.h> | |
#include <time.h> | |
#include <opus/opusfile.h> | |
#include <AL/al.h> | |
#include <AL/alc.h> | |
int main(int argc, const char *argv[]) |
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
#ifndef SCOPEGUARD_H | |
#define SCOPEGUARD_H | |
// Taken from "Declarative Control Flow" (CppCon 2015) | |
#include <exception> | |
#include <utility> | |
#define CONCATENATE_IMPL(s1, s2) s1##s2 | |
#define CONCATENATE(s1, s2) CONCATENATE_IMPL(s1, s2) |
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
#include "GLBeginEndChecker.h" | |
#include <iostream> | |
REGISTER_MAP_WITH_PROGRAMSTATE(GLBES, int, GLBeginEndState) | |
namespace clang | |
{ | |
namespace ento | |
{ | |
void registerGLBeginEndChecker(CheckerManager &mgr) |
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
#!/bin/sh | |
TEMPDIR=`mktemp -d --tmpdir=/tmp` | |
CURDIR=`pwd` | |
cd $TEMPDIR | |
echo "\documentclass[convert]{standalone}\begin{document}" > src.tex | |
echo $1 >> src.tex | |
echo "\end{document}" >> src.tex | |
pdflatex -shell-escape src.tex > /dev/null | |
cat src.png | xclip -selection c -t image/png |