-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update import statements and remove unused code
- Loading branch information
1 parent
5d847a0
commit 57dc598
Showing
15 changed files
with
158 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/conversions.v → vlas/internal/blas/conversions.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
pub enum MemoryLayout { | ||
row_major = 101 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
// import runtime | ||
import sync | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
import vsl.float.float64 | ||
import math | ||
|
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/dgemv_test.v → vlas/internal/blas/dgemv_test.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
fn test_dgemv_no_trans_1() { | ||
expected := [0.0, 0, 0, 0, 0] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/level1f64.v → vlas/internal/blas/level1f64.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
import vsl.float.float64 | ||
import math | ||
|
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/level1f64_ddot.v → vlas/internal/blas/level1f64_ddot.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
import vsl.float.float64 | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/level2f64.v → vlas/internal/blas/level2f64.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
import math | ||
import vsl.float.float64 | ||
|
2 changes: 1 addition & 1 deletion
2
vlas/internal/vblas/level3f64.v → vlas/internal/blas/level3f64.v
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module vblas | ||
module blas | ||
|
||
import vsl.float.float64 | ||
import math | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,82 @@ | ||
module vlas | ||
|
||
import vsl.vlas.internal.vblas | ||
import vsl.vlas.internal.blas | ||
|
||
// set_num_threads sets the number of threads in VLAS | ||
pub fn set_num_threads(n int) {} | ||
|
||
@[inline] | ||
pub fn ddot(n int, x []f64, incx int, y []f64, incy int) f64 { | ||
return vblas.ddot(n, x, incx, y, incy) | ||
return blas.ddot(n, x, incx, y, incy) | ||
} | ||
|
||
@[inline] | ||
pub fn dasum(n int, x []f64, incx int) f64 { | ||
return vblas.dasum(n, x, incx) | ||
return blas.dasum(n, x, incx) | ||
} | ||
|
||
@[inline] | ||
pub fn dnrm2(n int, x []f64, incx int) f64 { | ||
return vblas.dnrm2(n, x, incx) | ||
return blas.dnrm2(n, x, incx) | ||
} | ||
|
||
@[inline] | ||
pub fn daxpy(n int, alpha f64, x []f64, incx int, mut y []f64, incy int) { | ||
vblas.daxpy(n, alpha, x, incx, mut y, incy) | ||
blas.daxpy(n, alpha, x, incx, mut y, incy) | ||
} | ||
|
||
@[inline] | ||
pub fn dcopy(n int, x []f64, incx int, mut y []f64, incy int) { | ||
vblas.dcopy(n, x, incx, mut y, incy) | ||
blas.dcopy(n, x, incx, mut y, incy) | ||
} | ||
|
||
@[inline] | ||
pub fn dswap(n int, mut x []f64, incx int, mut y []f64, incy int) { | ||
vblas.dswap(n, mut x, incx, mut y, incy) | ||
blas.dswap(n, mut x, incx, mut y, incy) | ||
} | ||
|
||
@[inline] | ||
pub fn drot(n int, mut x []f64, incx int, mut y []f64, incy int, c f64, s f64) { | ||
vblas.drot(n, mut x, incx, mut y, incy, c, s) | ||
blas.drot(n, mut x, incx, mut y, incy, c, s) | ||
} | ||
|
||
@[inline] | ||
pub fn dscal(n int, alpha f64, mut x []f64, incx int) { | ||
vblas.dscal(n, alpha, mut x, incx) | ||
blas.dscal(n, alpha, mut x, incx) | ||
} | ||
|
||
@[inline] | ||
pub fn dgemv(trans bool, m int, n int, alpha f64, a []f64, lda int, x []f64, incx int, beta f64, mut y []f64, incy int) { | ||
vblas.dgemv(c_trans(trans), m, n, alpha, a, lda, x, incx, beta, mut y, incy) | ||
blas.dgemv(c_trans(trans), m, n, alpha, a, lda, x, incx, beta, mut y, incy) | ||
} | ||
|
||
@[inline] | ||
pub fn dger(m int, n int, alpha f64, x []f64, incx int, y []f64, incy int, mut a []f64, lda int) { | ||
vblas.dger(m, n, alpha, x, incx, y, incy, mut a, lda) | ||
blas.dger(m, n, alpha, x, incx, y, incy, mut a, lda) | ||
} | ||
|
||
@[inline] | ||
pub fn dtrsv(uplo bool, trans_a bool, diag vblas.Diagonal, n int, a []f64, lda int, mut x []f64, incx int) { | ||
vblas.dtrsv(c_uplo(uplo), c_trans(trans_a), diag, n, a, lda, mut x, incx) | ||
pub fn dtrsv(uplo bool, trans_a bool, diag blas.Diagonal, n int, a []f64, lda int, mut x []f64, incx int) { | ||
blas.dtrsv(c_uplo(uplo), c_trans(trans_a), diag, n, a, lda, mut x, incx) | ||
} | ||
|
||
@[inline] | ||
pub fn dtrmv(uplo bool, trans_a bool, diag vblas.Diagonal, n int, a []f64, lda int, mut x []f64, incx int) { | ||
vblas.dtrmv(c_uplo(uplo), c_trans(trans_a), diag, n, a, lda, mut x, incx) | ||
pub fn dtrmv(uplo bool, trans_a bool, diag blas.Diagonal, n int, a []f64, lda int, mut x []f64, incx int) { | ||
blas.dtrmv(c_uplo(uplo), c_trans(trans_a), diag, n, a, lda, mut x, incx) | ||
} | ||
|
||
@[inline] | ||
pub fn dsyr(uplo bool, n int, alpha f64, x []f64, incx int, mut a []f64, lda int) { | ||
vblas.dsyr(c_uplo(uplo), n, alpha, x, incx, mut a, lda) | ||
blas.dsyr(c_uplo(uplo), n, alpha, x, incx, mut a, lda) | ||
} | ||
|
||
@[inline] | ||
pub fn dsyr2(uplo bool, n int, alpha f64, x []f64, incx int, y []f64, incy int, mut a []f64, lda int) { | ||
vblas.dsyr2(c_uplo(uplo), n, alpha, x, incx, y, incy, mut a, lda) | ||
blas.dsyr2(c_uplo(uplo), n, alpha, x, incx, y, incy, mut a, lda) | ||
} | ||
|
||
@[inline] | ||
pub fn dgemm(trans_a bool, trans_b bool, m int, n int, k int, alpha f64, a []f64, lda int, b []f64, ldb int, beta f64, mut cc []f64, ldc int) { | ||
vblas.dgemm(c_trans(trans_a), c_trans(trans_b), m, n, k, alpha, a, lda, b, ldb, beta, mut | ||
blas.dgemm(c_trans(trans_a), c_trans(trans_b), m, n, k, alpha, a, lda, b, ldb, beta, mut | ||
cc, ldc) | ||
} |