Skip to content

Commit

Permalink
gemm logs (#403)
Browse files Browse the repository at this point in the history
* gemm logs

* bump version
  • Loading branch information
philsippl authored Sep 18, 2024
1 parent ab64d5a commit e550fc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/stage/common-values-iris-mpc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: "ghcr.io/worldcoin/iris-mpc:v0.6.8"
image: "ghcr.io/worldcoin/iris-mpc:v0.6.9"

environment: stage
replicaCount: 1
Expand Down
15 changes: 15 additions & 0 deletions iris-mpc-gpu/src/dot/share_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,21 @@ pub fn gemm(
alpha: i32,
beta: i32,
) {
tracing::info!(
"gemm: a: {:?}, b: {:?}, c: {:?}, a_offset: {}, b_offset: {}, c_offset: {}, m: {}, n: {}, \
k: {}, alpha: {}, beta: {}",
a,
b,
c,
a_offset,
b_offset,
c_offset,
m,
n,
k,
alpha,
beta
);
// https://docs.nvidia.com/cuda/cublas/#cublasgemmex:
// "CUBLAS_COMPUTE_32I and CUBLAS_COMPUTE_32I_PEDANTIC compute types are only supported with A, B being 4-byte aligned and lda, ldb being multiples of 4."
assert!(m % 4 == 0, "m must be a multiple of 4");
Expand Down

0 comments on commit e550fc2

Please sign in to comment.