bend-gpu-heap@0.1.0.0 relies on unsafe/foreign
0x621abe5eeea88964fb9e63176ef6aa9c
bend-gpu-heap: move Bend's GPU heap (CUDA managed memory) back to the CPU in one bulk prefetch, so new arrays in memory GPU kernels used are cheap.
bend-gpu-heap@0.1.0.0 by tjpa
- Published
- 2026-11-12
- Size
- 6,023 bytes, 6 files
- License
- MIT-0 (no LICENSE file; the hub's default)
- Declarations
- 0 laws (0 proved), 3 defs, 0 types
Import
import bend-gpu-heap@0.1.0.0/heap.bend as Heap import 0x621abe5eeea88964fb9e63176ef6aa9c/heap.bend as Heap import bend-gpu-heap@0.1.0.0/package.bend as Package import 0x621abe5eeea88964fb9e63176ef6aa9c/package.bend as Package import bend-gpu-heap@0.1.0.0/test/heap_test.bend as Heap_test import 0x621abe5eeea88964fb9e63176ef6aa9c/test/heap_test.bend as Heap_test
Modules
- heap.bend 1 declarations — bend-gpu-heap: move Bend's GPU heap back to the CPU in one bulk prefetch, so reusing memory a GPU kernel touched is cheap.
- package.bend 0 declarations — bend-gpu-heap: move Bend's GPU heap (CUDA managed memory) back to the CPU in one bulk prefetch, so new arrays in memory GPU kernels used are cheap.
- test/heap_test.bend 2 declarations — Heap.home after GPU work: runs a `!` call (so the heap is CUDA managed memory), then moves the heap home twice and
Other files
- README.md 2,106 bytes
- effs/heap.c 1,506 bytes
- effs/heap.js 138 bytes
Dependencies
No imports from other hub packages.
Dependents
No package in this build imports it.
Status on bend 2.0.40
| File | Status | Checker says | Time |
|---|---|---|---|
| heap.bend | relies on unsafe/foreign | 1 def relies on unsafe or foreign codeoutputSOME PROOFS FAIL Error: 1 def relies on unsafe or foreign code: defs that depend on foreign effects: Heap.home | 0.5 s |
| package.bend | relies on unsafe/foreign | 2 defs rely on unsafe or foreign codeoutputSOME PROOFS FAIL Error: 2 defs rely on unsafe or foreign code: defs that depend on foreign effects: 0x621abe5eeea88964fb9e63176ef6aa9c/heap.Heap.home, 0x621abe5eeea88964fb9e63176ef6aa9c/test/heap_test.main Hint: no law or proof uses these defs. Move them to a file this proof does not import, and the proofs will check: 0x621abe5eeea88964fb9e63176ef6aa9c/heap.Heap.home, 0x621abe5eeea88964fb9e63176ef6aa9c/test/heap_test.main | 0.5 s |
| test/heap_test.bend | relies on unsafe/foreign | 2 defs rely on unsafe or foreign codeoutputSOME PROOFS FAIL Error: 2 defs rely on unsafe or foreign code: defs that depend on foreign effects: 0x621abe5eeea88964fb9e63176ef6aa9c/heap.Heap.home, main | 0.6 s |