Initial Commit
This commit is contained in:
22 files changed
+2546
No files matched your search
+92
@@ -0,0 +1,92 @@
|
||||
name: linear
|
||||
gpid: malunal
|
||||
semv: 1.0.0
|
||||
|
||||
options:
|
||||
level: 2
|
||||
|
||||
requires:
|
||||
- https://git.malunal.studio/sakura/std@v1.0.0
|
||||
|
||||
targets:
|
||||
- name: linear
|
||||
type: library
|
||||
root: ./linear
|
||||
deps:
|
||||
- std.math
|
||||
- std.serial
|
||||
|
||||
# The shapes of space, made of `linear`'s vectors, and the tests between them.
|
||||
- name: geometry
|
||||
type: library
|
||||
root: ./geometry
|
||||
deps:
|
||||
- linear
|
||||
- std.math
|
||||
- std.serial
|
||||
|
||||
# Times what `linear` does against the same written a number at a time; see
|
||||
# its header.
|
||||
- name: linear.bench
|
||||
type: program
|
||||
level: ${level}
|
||||
deps:
|
||||
- linear
|
||||
- std.containers
|
||||
- std.io
|
||||
- std.math
|
||||
- std.time
|
||||
srcs:
|
||||
- tools/bench.sakura
|
||||
|
||||
# Times what `geometry` does against the same written a number at a time; see
|
||||
# its header.
|
||||
- name: geometry.bench
|
||||
type: program
|
||||
level: ${level}
|
||||
deps:
|
||||
- geometry
|
||||
- linear
|
||||
- std.containers
|
||||
- std.io
|
||||
- std.math
|
||||
- std.time
|
||||
srcs:
|
||||
- tools/geometry_bench.sakura
|
||||
|
||||
tests:
|
||||
# On the machine, which works each number at a time.
|
||||
- name: linear.tests
|
||||
type: program
|
||||
deps: [linear, std.json, std.math, std.serial, std.testing]
|
||||
srcs: [tests/main.sakura, tests/linear.sakura]
|
||||
|
||||
# The same tests built with `-O2`, which works vectors as lanes, and gives the
|
||||
# same bits.
|
||||
- name: linear.lanes.tests
|
||||
type: program
|
||||
runs: native
|
||||
level: 2
|
||||
deps: [linear, std.json, std.math, std.serial, std.testing]
|
||||
srcs: [tests/main.sakura, tests/linear.sakura]
|
||||
|
||||
# `geometry`'s, the same two ways.
|
||||
- name: geometry.tests
|
||||
type: program
|
||||
deps: [geometry, linear, std.json, std.math, std.serial, std.testing]
|
||||
srcs: [tests/main.sakura, tests/geometry.sakura]
|
||||
|
||||
- name: geometry.lanes.tests
|
||||
type: program
|
||||
runs: native
|
||||
level: 2
|
||||
deps: [geometry, linear, std.json, std.math, std.serial, std.testing]
|
||||
srcs: [tests/main.sakura, tests/geometry.sakura]
|
||||
|
||||
exports:
|
||||
- linear
|
||||
- geometry
|
||||
|
||||
package:
|
||||
desc: Vectors, quaternions, and matrices of f32, and the shapes of space made of them, worked as SIMD lanes where an executable holds them.
|
||||
auth: John Christman <sorakatadzuma@gmail.com>
|
||||
Reference in new issue
Block a user