Skip to content

Instantly share code, notes, and snippets.

View ngoldbaum's full-sized avatar

Nathan Goldbaum ngoldbaum

View GitHub Profile
| Change | Before [ef5f10d6] <main> | After [f133e62e] <test-disable-data-cache> | Ratio | Benchmark (Parameter) |
|----------|----------------------------|----------------------------------------------|---------|-------------------------------------------------------------------------------------------------|
| + | 4.82±0.01μs | 16.5±3μs | 3.42 | bench_ufunc_strides.BinaryFPSpecial.time_binary_scalar_in1(<ufunc 'maximum'>, 2, 4, 4, 'f') |
| + | 31.5±0.4μs | 102±70μs | 3.25 | bench_ufunc_strides.UnaryFP.time_unary(<ufunc 'tan'>, 1, 1, 'd') |
| + | 1.43±0.01μs | 3.72±4μs | 2.6 | bench_ufunc_strides.BinaryIntContig.time_binary_scalar_in0(<ufunc 'logical_and'>, 1, 1, 1, 'l') |
| + | 2.67±0.01μs
| Change | Before [ef5f10d6] <main> | After [9ffca2be] <test-dict-identity-hash> | Ratio | Benchmark (Parameter) |
|----------|----------------------------|----------------------------------------------|---------|------------------------------------------------------------------------------------------------------------|
| + | 7.87±0.01μs | 16.9±9μs | 2.14 | bench_ufunc.UFunc.time_ufunc_types('invert') |
| + | 39.0±0.02μs | 62.9±30μs | 1.61 | bench_ufunc_strides.UnaryFP.time_unary(<ufunc 'sinh'>, 4, 1, 'e') |
| + | 14.1±0.01μs | 20.4±9μs | 1.45 | bench_ufunc_strides.UnaryFP.time_unary(<ufunc 'sinh'>, 4, 1, 'f')
======================================================================
ERROR: runTest (__main__.CythonRunTestCase.runTest)
[-1] compiling (cpp/cy2) and running cpp_nonstdint
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/goldbaum/Documents/cython/runtests.py", line 1504, in run
ext_so_path = self.runCompileTest()
~~~~~~~~~~~~~~~~~~~^^
File "/Users/goldbaum/Documents/cython/runtests.py", line 1119, in runCompileTest
return self.compile(
mkdir ~/user/github
cd !$
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod 755 Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh -b -f -u -p csp_venv
. ~/user/github/csp_venv/etc/profile.d/conda.sh
conda config --add channels conda-forge
conda config --set channel_priority strict
#!/bin/bash
set -xeuo pipefail
IFS=$'\n\t'
if [ -d "build/" ]
then
rm -r build
fi
#meson setup build -Db_sanitize=address,undefined
diff --git a/c/numpy-vstring/Makefile b/c/numpy-vstring/Makefile
index 894fbfd..cfaf231 100644
--- a/c/numpy-vstring/Makefile
+++ b/c/numpy-vstring/Makefile
@@ -1,13 +1,10 @@
SRC = vstring_demo.c vstring_print_utils.c vstring.c
HEADERS = vstring_print_utils.h vstring.h
-all: vstring_demo vstring_demo_mock_be
+all: vstring_demo
diff --git a/c/numpy-vstring/Makefile b/c/numpy-vstring/Makefile
index 894fbfd..cfaf231 100644
--- a/c/numpy-vstring/Makefile
+++ b/c/numpy-vstring/Makefile
@@ -1,13 +1,10 @@
SRC = vstring_demo.c vstring_print_utils.c vstring.c
HEADERS = vstring_print_utils.h vstring.h
-all: vstring_demo vstring_demo_mock_be
+all: vstring_demo
// _cat
static PyObject * THPVariable__cat(PyObject* self_, PyObject* args, PyObject* kwargs)
{
HANDLE_TH_ERRORS
static PythonArgParser parser({
"_cat(TensorList tensors, int64_t dim=0, *, Tensor out=None)",
}, /*traceable=*/true);
ParsedArgs<3> parsed_args;
auto _r = parser.parse(args, kwargs, parsed_args);
In [1]: import yt
In [2]: ds = yt.load('ArepoBullet/snapshot_150.hdf5', smoothing_factor=1.5)
yt : [INFO ] 2020-02-27 15:45:18,078 Omega Lambda is 0.0, so we are turning off Cosmology.
yt : [INFO ] 2020-02-27 15:45:18,138 Parameters: current_time
= 1.5380632172269546
yt : [INFO ] 2020-02-27 15:45:18,138 Parameters: domain_dimensions
= [1 1 1]
yt : [INFO ] 2020-02-27 15:45:18,139 Parameters: domain_left_edge
= [0. 0. 0.]
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /home/goldbaum/miniconda3/envs/test-environment
added / updated specs:
- cpuonly
- python=3.7