-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests on macOS #184
Fix tests on macOS #184
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,14 +69,6 @@ jobs: | |
|
||
- name: Execute Tests using Pure V Backend with Pure C Blas | ||
run: ~/.vmodules/vsl/bin/test ${{ matrix.flags }} --use-cblas | ||
if: ${{ matrix.os != 'ubuntu-18.04' }} | ||
|
||
- name: Execute Tests using Pure V Backend and Garbage Collection enabled | ||
run: ~/.vmodules/vsl/bin/test ${{ matrix.flags }} --use-gc boehm | ||
|
||
- name: Execute Tests using Pure V Backend with Pure C Blas and Garbage Collection enabled | ||
run: ~/.vmodules/vsl/bin/test ${{ matrix.flags }} --use-cblas --use-gc boehm | ||
if: ${{ matrix.os != 'ubuntu-18.04' }} | ||
|
||
run-tests-on-macos: | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -118,18 +110,7 @@ jobs: | |
run: mv ./vsl ~/.vmodules | ||
|
||
- name: Execute Tests using Pure V Backend | ||
# TODO: Remove continue-on-error when CI is fixed for macOS | ||
continue-on-error: true | ||
run: ~/.vmodules/vsl/bin/test | ||
run: ~/.vmodules/vsl/bin/test --skip-examples | ||
|
||
- name: Execute Tests using Pure V Backend with Pure C Blas | ||
continue-on-error: true | ||
run: ~/.vmodules/vsl/bin/test --use-cblas | ||
|
||
- name: Execute Tests using Pure V Backend and Garbage Collection enabled | ||
continue-on-error: true | ||
run: ~/.vmodules/vsl/bin/test --use-gc boehm | ||
|
||
- name: Execute Tests using Pure V Backend with Pure C Blas and Garbage Collection enabled | ||
continue-on-error: true | ||
run: ~/.vmodules/vsl/bin/test --use-cblas --use-gc boehm | ||
run: ~/.vmodules/vsl/bin/test --use-cblas --skip-examples | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we using the flag There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tests work, but not all examples build on mac currently. Thought we can re-enable it when they do. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module vlas | ||
|
||
import vsl.vlas.internal.vblas | ||
|
||
fn C.LAPACKE_dlange(matrix_layout vblas.MemoryLayout, norm &char, m int, n int, a &f64, lda int, work &f64) f64 | ||
|
||
pub fn dlange(norm rune, m int, n int, a []f64, lda int, work []f64) f64 { | ||
return unsafe { | ||
C.LAPACKE_dlange(.row_major, &char(norm.str().str), m, n, &a[0], lda, &work[0]) | ||
} | ||
} | ||
Comment on lines
+1
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function pub fn dlange(norm rune, m int, n int, a []f64, lda int, work []f64) f64 {
+ if a.len == 0 || work.len == 0 {
+ return 0.0
+ }
return unsafe {
C.LAPACKE_dlange(.row_major, &char(norm.str().str), m, n, &a[0], lda, &work[0])
}
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module vlas | ||
|
||
fn C.LAPACKE_dlange(norm &char, m int, n int, a &f64, lda int, work &f64) f64 | ||
|
||
pub fn dlange(norm rune, m int, n int, a []f64, lda int, work []f64) f64 { | ||
return unsafe { C.LAPACKE_dlange(&char(norm.str().str), m, n, &a[0], lda, &work[0]) } | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removes apparently obsolete