Revision d3ea7554f9baca74d4cae7da381f6f9c8aa9eb63 authored by Steven Johnson on 09 November 2021, 17:03:17 UTC, committed by GitHub on 09 November 2021, 17:03:17 UTC
If you try to build and run something with `openglcompute` and `debug`, you may crash with a div-by-zero, because the openglcompute runtime never calls `halide_start_clock()`, and all implementations of `halide_current_time_ns()` assume that it has been called. On (e.g.) OSX, this results in div by zero. This fixes it by inserting the correct call into openglruntime.cpp, and also adding debug-only asserts to all the `halide_current_time_ns()` implementations. (I was tempted to fix this by removing `halide_start_clock()` entirely and just lazily initing the initial value in `halide_current_time_ns()`, but I figured that would likely get pushback...)
1 parent d6f1345
File | Mode | Size |
---|---|---|
.github | ||
apps | ||
cmake | ||
dependencies | ||
doc | ||
packaging | ||
python_bindings | ||
src | ||
test | ||
tools | ||
tutorial | ||
util | ||
.clang-format | -rw-r--r-- | 1.4 KB |
.clang-format-ignore | -rw-r--r-- | 265 bytes |
.clang-tidy | -rw-r--r-- | 1.8 KB |
.gitattributes | -rw-r--r-- | 342 bytes |
.gitignore | -rw-r--r-- | 1.1 KB |
.gitmodules | -rw-r--r-- | 0 bytes |
CMakeLists.txt | -rw-r--r-- | 5.5 KB |
CMakePresets.json | -rw-r--r-- | 5.2 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 3.5 KB |
LICENSE.txt | -rw-r--r-- | 3.2 KB |
Makefile | -rw-r--r-- | 101.2 KB |
README.md | -rw-r--r-- | 16.4 KB |
README_cmake.md | -rw-r--r-- | 69.2 KB |
README_rungen.md | -rw-r--r-- | 12.1 KB |
README_webassembly.md | -rw-r--r-- | 8.6 KB |
run-clang-format.sh | -rwxr-xr-x | 1.4 KB |
run-clang-tidy.sh | -rwxr-xr-x | 3.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...