Skip to content

Commit

Permalink
update binary
Browse files Browse the repository at this point in the history
  • Loading branch information
octu0 committed Apr 1, 2021
1 parent 42e2b2e commit d3a54f6
Show file tree
Hide file tree
Showing 23 changed files with 48 additions and 43 deletions.
69 changes: 37 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,24 @@ VERSION:
1.7.0
COMMANDS:
blockmozaic
boxblur
brightness
clone
contrast
edge
emboss
gamma
gaussianblur
gradient
grayscale
highpass
invert
laplacian
rotate
sobel
blockmozaic
boxblur
brightness
clone
contrast
dilation
edge
emboss
erosion
gamma
gaussianblur
gradient
grayscale
highpass
invert
laplacian
rotate
sobel
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
Expand All @@ -231,22 +233,25 @@ darwin/amd64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
```
benchmark...
src 320x240
BenchmarkJIT/cloneimg : 0.01770ms
BenchmarkJIT/rotate : 0.02045ms
BenchmarkJIT/grayscale : 0.11156ms
BenchmarkJIT/invert : 0.06351ms
BenchmarkJIT/brightness : 0.06539ms
BenchmarkJIT/gammacorrection : 0.13358ms
BenchmarkJIT/contrast : 0.08683ms
BenchmarkJIT/boxblur : 0.32303ms
BenchmarkJIT/gaussianblur : 0.31415ms
BenchmarkJIT/edge : 0.10656ms
BenchmarkJIT/sobel : 0.12836ms
BenchmarkJIT/emboss : 0.15628ms
BenchmarkJIT/laplacian : 0.16627ms
BenchmarkJIT/highpass : 0.17836ms
BenchmarkJIT/gradient : 0.15612ms
BenchmarkJIT/blockmozaic : 0.34116ms
BenchmarkJIT/cloneimg : 0.01805ms
BenchmarkJIT/rotate : 0.02173ms
BenchmarkJIT/erosion : 0.06836ms
BenchmarkJIT/dilation : 0.06849ms
BenchmarkJIT/grayscale : 0.11893ms
BenchmarkJIT/invert : 0.06620ms
BenchmarkJIT/brightness : 0.08915ms
BenchmarkJIT/gammacorrection : 0.10024ms
BenchmarkJIT/contrast : 0.09237ms
BenchmarkJIT/boxblur : 0.33524ms
BenchmarkJIT/gaussianblur : 0.31813ms
BenchmarkJIT/edge : 0.10531ms
BenchmarkJIT/sobel : 0.12117ms
BenchmarkJIT/canny : 0.34783ms
BenchmarkJIT/emboss : 0.15647ms
BenchmarkJIT/laplacian : 0.16669ms
BenchmarkJIT/highpass : 0.18053ms
BenchmarkJIT/gradient : 0.17972ms
BenchmarkJIT/blockmozaic : 0.34307ms
```

## AOT benchmarks
Expand Down
2 changes: 1 addition & 1 deletion blurry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ Func canny_fn(Func input, Param<int32_t> width, Param<int32_t> height) {

Expr sigma = 5.0f;
RDom gauss_rd = RDom(-2, 5, "gaussian_rdom");
Func gauss = gaussian(in, sigma, gauss_rd, "gaussian5x5");
Func gauss = gaussian(in, sigma, gauss_rd, "canny");

Func ks_x = Func("kernel_sobel_x");
ks_x(x, y) = 0;
Expand Down
Binary file modified libblockmozaic_linux.a
Binary file not shown.
Binary file modified libblockmozaic_osx.a
Binary file not shown.
Binary file renamed libsobel3x3_linux.a → libcanny_linux.a
Binary file not shown.
10 changes: 5 additions & 5 deletions libsobel3x3_osx.h → libcanny_linux.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HALIDE__libsobel3x3_osx_h
#define HALIDE__libsobel3x3_osx_h
#ifndef HALIDE__libcanny_linux_h
#define HALIDE__libcanny_linux_h
#include <stdint.h>

// Forward declarations of the types used in the interface
Expand Down Expand Up @@ -41,13 +41,13 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int sobel3x3(struct halide_buffer_t *_p13_buffer, int32_t _width, int32_t _height, struct halide_buffer_t *_sobel3x3_buffer);
int canny(struct halide_buffer_t *_p13_buffer, int32_t _width, int32_t _height, struct halide_buffer_t *_canny_buffer);

HALIDE_FUNCTION_ATTRS
int sobel3x3_argv(void **args);
int canny_argv(void **args);

HALIDE_FUNCTION_ATTRS
const struct halide_filter_metadata_t *sobel3x3_metadata();
const struct halide_filter_metadata_t *canny_metadata();

#ifdef __cplusplus
} // extern "C"
Expand Down
Binary file added libcanny_osx.a
Binary file not shown.
10 changes: 5 additions & 5 deletions libsobel3x3_linux.h → libcanny_osx.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HALIDE__libsobel3x3_linux_h
#define HALIDE__libsobel3x3_linux_h
#ifndef HALIDE__libcanny_osx_h
#define HALIDE__libcanny_osx_h
#include <stdint.h>

// Forward declarations of the types used in the interface
Expand Down Expand Up @@ -41,13 +41,13 @@ extern "C" {
#endif

HALIDE_FUNCTION_ATTRS
int sobel3x3(struct halide_buffer_t *_p13_buffer, int32_t _width, int32_t _height, struct halide_buffer_t *_sobel3x3_buffer);
int canny(struct halide_buffer_t *_p13_buffer, int32_t _width, int32_t _height, struct halide_buffer_t *_canny_buffer);

HALIDE_FUNCTION_ATTRS
int sobel3x3_argv(void **args);
int canny_argv(void **args);

HALIDE_FUNCTION_ATTRS
const struct halide_filter_metadata_t *sobel3x3_metadata();
const struct halide_filter_metadata_t *canny_metadata();

#ifdef __cplusplus
} // extern "C"
Expand Down
Binary file modified libedge_linux.a
Binary file not shown.
Binary file modified libedge_osx.a
Binary file not shown.
Binary file modified libemboss_linux.a
Binary file not shown.
Binary file modified libemboss_osx.a
Binary file not shown.
Binary file modified libgaussianblur_linux.a
Binary file not shown.
Binary file modified libgaussianblur_osx.a
Binary file not shown.
Binary file modified libgradient_linux.a
Binary file not shown.
Binary file modified libgradient_osx.a
Binary file not shown.
Binary file modified libhighpass_linux.a
Binary file not shown.
Binary file modified libhighpass_osx.a
Binary file not shown.
Binary file modified liblaplacian_linux.a
Binary file not shown.
Binary file modified liblaplacian_osx.a
Binary file not shown.
Binary file removed libsobel3x3_osx.a
Binary file not shown.
Binary file modified libsobel_linux.a
Binary file not shown.
Binary file modified libsobel_osx.a
Binary file not shown.

0 comments on commit d3a54f6

Please sign in to comment.