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
Filters: [shifted] | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
eval_bench is a Catch v2.11.1 host application. | |
Run with -? for options | |
------------------------------------------------------------------------------- | |
Benchmark shifted 2-source plan evaluation | |
------------------------------------------------------------------------------- | |
/home/tdimson/projects/skimpy/tests/benchmarks/eval_bench.cpp:336 |
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
Filters: [shifted] | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
eval_bench is a Catch v2.11.1 host application. | |
Run with -? for options | |
------------------------------------------------------------------------------- | |
Benchmark shifted 2-source plan evaluation | |
------------------------------------------------------------------------------- | |
/home/tdimson/projects/skimpy/tests/benchmarks/eval_bench.cpp:336 |
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
Filters: [shifted] | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
eval_bench is a Catch v2.11.1 host application. | |
Run with -? for options | |
------------------------------------------------------------------------------- | |
Benchmark shifted 2-source plan evaluation | |
------------------------------------------------------------------------------- | |
/home/tdimson/projects/skimpy/tests/benchmarks/eval_bench.cpp:336 |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
eval_bench is a Catch v2.11.1 host application. | |
Run with -? for options | |
------------------------------------------------------------------------------- | |
Benchmark 1-source evaluation | |
------------------------------------------------------------------------------- | |
/home/tdimson/projects/skimpy/tests/benchmarks/eval_bench.cpp:103 | |
............................................................................... |
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
#pragma once | |
#include <string> | |
#include <thread> | |
namespace skimpy { | |
class GlobalConfig { | |
public: | |
static inline GlobalConfig& get() { |
This file has been truncated, but you can view the full file.
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 TACO_C_HEADERS | |
#define TACO_C_HEADERS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <math.h> | |
#include <complex.h> | |
#include <string.h> | |
#define TACO_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b)) |
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 <pybind11/pybind11.h> | |
#include <chrono> | |
#include <random> | |
#include <future> | |
#include <thread> | |
namespace py = pybind11; | |
int32_t* newRandArray(const size_t size, const int numThreads) { | |
auto space = new int32_t[size]; |
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
[main] Building folder: skimpy | |
[build] Starting build | |
[proc] Executing command: /usr/bin/cmake --build /home/tdimson/projects/skimpy/build --config Debug --target skimpy_ext -- -j 34 | |
[build] [ 60%] Built target fmt | |
[build] Scanning dependencies of target skimpy_ext | |
[build] [ 80%] Building CXX object src/cpp_ext/CMakeFiles/skimpy_ext.dir/skimpy_ext.cpp.o | |
[build] In file included from /home/tdimson/projects/skimpy/include/skimpy/skimpy.hpp:3, | |
[build] from /home/tdimson/projects/skimpy/src/cpp_ext/skimpy_ext.cpp:5: | |
[build] /home/tdimson/projects/skimpy/include/skimpy/array.hpp: In function ‘skimpy::Array<Val> skimpy::operator%(const skimpy::Array<Val>&, const skimpy::Array<Val>&) [with Val = float]’: | |
[build] /home/tdimson/projects/skimpy/include/skimpy/array.hpp:278:36: error: no matching function for call to ‘skimpy::Array<float>::merge<fn>(const skimpy::Array<float>&) const’ |
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
Processing /home/tdimson/projects/skimpy | |
Building wheels for collected packages: skimpy | |
Building wheel for skimpy (setup.py): started | |
Building wheel for skimpy (setup.py): finished with status 'error' | |
ERROR: Command errored out with exit status 1: | |
command: /home/tdimson/anaconda3/envs/skimpy/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/tdimson/projects/skimpy/setup.py'"'"'; __file__='"'"'/home/tdimson/projects/skimpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-0ngon5pe | |
cwd: /home/tdimson/projects/skimpy/ | |
Complete output (77 lines): | |
running bdist_wheel | |
running build |
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
def skimpy_dense(n, n_ops): | |
base_np = np.ones(n) | |
multiplier_np = np.random.randint(2 ** 3 - 1, size=n) | |
base_skimpy = skimpy.from_numpy(base_np) | |
multiplier_skimpy = skimpy.from_numpy(multiplier_np) | |
for i in range(n_ops): | |
base_skimpy = base_skimpy * multiplier_skimpy | |
t = Timer() |