This file contains 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
boost/simd/toolbox/operator/functions/load.hpp 27,2 Top | |
#include <boost/simd/include/simd.hpp> | |
#include <boost/simd/sdk/simd/pack.hpp> | |
using namespace boost::simd; | |
int main() { | |
int n = 100; | |
int * a = new int[n]; | |
pack<int> v(a);// = unaligned_load< pack<int> >(a,0); | |
delete [] a; |
This file contains 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
In file included from /home/serge/sources/nt2/_build/install/include/boost/simd/operator/specific/common.hpp:36:0, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/arithmetic/functions/tofloat.hpp:64, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/arithmetic/include/functions/simd/tofloat.hpp:4, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/include/functions/simd/tofloat.hpp:4, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/operator/functions/simd/common/splat.hpp:15, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/operator/include/functions/simd/splat.hpp:6, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/include/functions/simd/splat.hpp:4, | |
from /home/serge/sources/nt2/_build/install/include/boost/simd/sdk/constant/impl/simd/common.hpp:12, | |
from /home/serge/sources/nt2/_build/install/ |
This file contains 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
diff -cr Python-2.7.6/Include/opcode.h Python-2.7.6-patched/Include/opcode.h | |
*** Python-2.7.6/Include/opcode.h 2013-11-10 08:36:39.000000000 +0100 | |
--- Python-2.7.6-patched/Include/opcode.h 2014-05-16 16:14:42.885966107 +0200 | |
*************** | |
*** 149,154 **** | |
--- 149,155 ---- | |
#define SET_ADD 146 | |
#define MAP_ADD 147 | |
+ #define LOAD_FAST_ZERO_LOAD_CONST 148 |
This file contains 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
import ast | |
import sys | |
import shutil | |
import unparse | |
import unittest | |
import doctest | |
import StringIO | |
import os | |
from copy import deepcopy |
This file contains 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
// compile with clang++-3.7 `llvm-config-3.7 --cxxflags --ldflags --libs` -rdynamic` interp.cpp -o interp | |
#include <iostream> | |
#include <string> | |
#include "llvm/Bitcode/ReaderWriter.h" | |
#include "llvm/Support/MemoryBuffer.h" | |
#include <llvm/ExecutionEngine/GenericValue.h> | |
#include <llvm/ExecutionEngine/Interpreter.h> | |
#include <llvm/ExecutionEngine/MCJIT.h> |
This file contains 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
import matplotlib.pyplot as plt | |
import timeit | |
import hashlib | |
import gc | |
import numpy as np | |
import numexpr as ne | |
from a import a as pythran | |
from numba import vectorize, jit | |
from pythran import compile_pythrancode |
This file contains 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
if(GlobalVariable* GA = M.getGlobalVariable("llvm.global.annotations")) { | |
// the first operand holds the metadata | |
for (Value *AOp : GA->operands()) { | |
// all metadata are stored in an array of struct of metadata | |
if (ConstantArray *CA = dyn_cast<ConstantArray>(AOp)) { | |
// so iterate over the operands | |
for (Value *CAOp : CA->operands()) { | |
// get the struct, which holds a pointer to the annotated function | |
// as first field, and the annotation as second field | |
if (ConstantStruct *CS = dyn_cast<ConstantStruct>(CAOp)) { |
This file contains 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 <cstdint> | |
#include <type_traits> | |
template<class T> | |
constexpr std::intptr_t index_of() { | |
return 1; | |
} | |
template<class T, class T0, class... Ts> | |
constexpr std::intptr_t index_of() { | |
return std::is_same<T, T0>::value ? 0 : (1 + index_of<T, Ts...>()); |
This file contains 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 <string> | |
#include <cassert> | |
#include <array> | |
#include <numeric> | |
template<std::size_t N, char Seed = 42> | |
class constexpr_str { | |
std::array<char, N> data_; | |
template<std::size_t... Is> |
This file contains 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/bash | |
sed -i -e 's,CC=,CC=/opt/anaconda1anaconda2anaconda3/bin/gcc-4.9,' -e 's,CXX=,CXX=/opt/anaconda1anaconda2anaconda3/bin/g++-4.9,' -e 's,library_dirs=,library_dirs=/opt/anaconda1anaconda2anaconda3/lib ,' -e 's,include_dirs=,include_dirs=/opt/anaconda1anaconda2anaconda3/include ,' -e 's|ldflags=|ldflags=-Wl,-rpath /opt/anaconda1anaconda2anaconda3/lib64 |' pythran/pythran-linux2.cfg | |
sed -i -e 's,CC=,CC=/opt/anaconda1anaconda2anaconda3/bin/gcc-4.9,' -e 's,CXX=,CXX=/opt/anaconda1anaconda2anaconda3/bin/g++-4.9,' -e 's,library_dirs=,library_dirs=/opt/anaconda1anaconda2anaconda3/lib ,' -e 's,include_dirs=,include_dirs=/opt/anaconda1anaconda2anaconda3/include ,' -e 's|ldflags=|ldflags=-Wl,-rpath /opt/anaconda1anaconda2anaconda3/lib64 |' pythran/pythran-linux.cfg | |
$PYTHON setup.py install | |
OlderNewer