Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blas-sys"
version = "0.7.1"
version = "0.7.2"
license = "Apache-2.0/MIT"
authors = [
"Andrew Straw <[email protected]>",
Expand All @@ -18,3 +18,7 @@ keywords = ["linear-algebra"]

[dependencies]
libc = "0.2"
half = {version="2.3.1", optional=true}

[features]
half = ["dep:half"]
18 changes: 18 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1436,4 +1436,22 @@ extern "C" {
b: *mut c_double_complex,
ldb: *const c_int,
);

// Half
#[cfg(feature = "half")]
pub fn hgemm_(
transa: *const c_char,
transb: *const c_char,
m: *const c_int,
n: *const c_int,
k: *const c_int,
alpha: *const half::f16,
a: *const half::f16,
lda: *const c_int,
b: *const half::f16,
ldb: *const c_int,
beta: *const half::f16,
c: *mut half::f16,
ldc: *const c_int,
);
}