autumnai / collenchyma-blas Goto Github PK
View Code? Open in Web Editor NEWCollenchyma plugin for backend-agnostic BLAS operations
Home Page: http://autumnai.github.io/collenchyma-blas
License: Apache License 2.0
Collenchyma plugin for backend-agnostic BLAS operations
Home Page: http://autumnai.github.io/collenchyma-blas
License: Apache License 2.0
This issue was automatically generated. Feel free to close without ceremony if
you do not agree with re-licensing or if it is not possible for other reasons.
Respond to @cmr with any questions or concerns, or pop over to
#rust-offtopic
on IRC to discuss.
You're receiving this because someone (perhaps the project maintainer)
published a crates.io package with the license as "MIT" xor "Apache-2.0" and
the repository field pointing here.
TL;DR the Rust ecosystem is largely Apache-2.0. Being available under that
license is good for interoperation. The MIT license as an add-on can be nice
for GPLv2 projects to use your code.
The MIT license requires reproducing countless copies of the same copyright
header with different names in the copyright field, for every MIT library in
use. The Apache license does not have this drawback. However, this is not the
primary motivation for me creating these issues. The Apache license also has
protections from patent trolls and an explicit contribution licensing clause.
However, the Apache license is incompatible with GPLv2. This is why Rust is
dual-licensed as MIT/Apache (the "primary" license being Apache, MIT only for
GPLv2 compat), and doing so would be wise for this project. This also makes
this crate suitable for inclusion and unrestricted sharing in the Rust
standard distribution and other projects using dual MIT/Apache, such as my
personal ulterior motive, the Robigalia project.
Some ask, "Does this really apply to binary redistributions? Does MIT really
require reproducing the whole thing?" I'm not a lawyer, and I can't give legal
advice, but some Google Android apps include open source attributions using
this interpretation. Others also agree with
it.
But, again, the copyright notice redistribution is not the primary motivation
for the dual-licensing. It's stronger protections to licensees and better
interoperation with the wider Rust ecosystem.
To do this, get explicit approval from each contributor of copyrightable work
(as not all contributions qualify for copyright, due to not being a "creative
work", e.g. a typo fix) and then add the following to your README:
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.
and in your license headers, if you have them, use the following boilerplate
(based on that used in Rust):
// Copyright 2016 collenchyma-blas Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
It's commonly asked whether license headers are required. I'm not comfortable
making an official recommendation either way, but the Apache license
recommends it in their appendix on how to use the license.
Be sure to add the relevant LICENSE-{MIT,APACHE}
files. You can copy these
from the Rust repo for a plain-text
version.
And don't forget to update the license
metadata in your Cargo.toml
to:
license = "MIT OR Apache-2.0"
I'll be going through projects which agree to be relicensed and have approval
by the necessary contributors and doing this changes, so feel free to leave
the heavy lifting to me!
To agree to relicensing, comment with :
I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.
Or, if you're a contributor, you can check the box in this repo next to your
name. My scripts will pick this exact phrase up and check your checkbox, but
I'll come through and manually review this issue later as well.
CUDA tests for dot and nrm2 fail. Rarely other CUDA-related tests fail too.
dmesg:
[ 170.053881] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000013, engmask 00000101, intr 10000000
[ 170.074502] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000012, engmask 00000101, intr 10000000
[ 391.163575] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000019, engmask 00000101, intr 10000000
[ 397.859409] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000018, engmask 00000101, intr 10000000
[ 402.360207] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000019, engmask 00000101, intr 10000000
[ 409.619714] NVRM: Xid (PCI:0000:01:00): 31, Ch 0000001b, engmask 00000101, intr 10000000
[ 469.945853] NVRM: Xid (PCI:0000:01:00): 31, Ch 0000001b, engmask 00000101, intr 10000000
[ 469.956065] NVRM: Xid (PCI:0000:01:00): 31, Ch 00000019, engmask 00000101, intr 10000000
Xid 31 == GPU memory page fault
butler@antiferno:~/packs/collenchyma-blas$ cargo test
Running target/debug/blas_specs-1f948e68660c7d92
running 26 tests
test blas_spec::cuda::it_computes_correct_asum_on_cuda_for_f32 ... ok
test blas_spec::cuda::it_computes_correct_axpy_on_cuda_for_f32 ... ok
test blas_spec::cuda::it_computes_correct_copy_on_cuda_for_f32 ... ok
test blas_spec::cuda::it_computes_correct_dot_on_cuda_for_f32 ... FAILED
test blas_spec::cuda::it_computes_correct_gemm_on_cuda_for_f32 ... FAILED
test blas_spec::cuda::it_computes_correct_nrm2_on_cuda_for_f32 ... FAILED
test blas_spec::native::it_computes_correct_asum_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_asum_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_axpy_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_axpy_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_copy_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_copy_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_dot_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_dot_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_gemm_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_gemm_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_gemm_transpose_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_nrm2_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_nrm2_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_scal_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_scal_on_native_for_f64 ... ok
test blas_spec::native::it_computes_correct_swap_on_native_for_f32 ... ok
test blas_spec::native::it_computes_correct_swap_on_native_for_f64 ... ok
test blas_spec::cuda::it_computes_correct_scal_on_cuda_for_f32 ... ok
test blas_spec::cuda::it_computes_correct_swap_on_cuda_for_f32 ... ok
test blas_spec::cuda::it_computes_correct_transpose_gemm_on_cuda_for_f32 ... ok
failures:
---- blas_spec::cuda::it_computes_correct_dot_on_cuda_for_f32 stdout ----
thread 'blas_spec::cuda::it_computes_correct_dot_on_cuda_for_f32' panicked at 'called `Result::unwrap()` on an `Err` value: Plugin(Operation("Unable to execute operation dot."))', ../src/libcore/result.rs:785
stack backtrace:
1: 0x55e7c5289a20 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
2: 0x55e7c528ce7b - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
3: 0x55e7c528ca6c - std::panicking::default_hook::hc2c969e7453d080c
4: 0x55e7c528050f - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
5: 0x55e7c52814d8 - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
6: 0x55e7c5288c71 - rust_begin_unwind
7: 0x55e7c52c2f3f - core::panicking::panic_fmt::h257ceb0aa351d801
8: 0x55e7c51dd348 - core::result::unwrap_failed::h0d8273a186b5b477
at ../src/libcore/macros.rs:29
9: 0x55e7c51e4e06 - _<std..result..Result<T, E>>::unwrap::hd26718a3964659af
at ../src/libcore/result.rs:723
10: 0x55e7c51fb6ed - blas_specs::blas_spec::cuda::it_computes_correct_dot_on_cuda_for_f32::h13d7ffbb2d118a9e
at tests/blas_specs.rs:428
11: 0x55e7c521b096 - _<F as std..boxed..FnBox<A>>::call_box::hebdedc6b66e381cc
12: 0x55e7c521d7db - std::sys_common::unwind::try::try_fn::h7c02806ebfbd3142
13: 0x55e7c5288bfb - __rust_try
14: 0x55e7c5288b8d - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
15: 0x55e7c521db5a - _<F as std..boxed..FnBox<A>>::call_box::h214ad3593915cb36
16: 0x55e7c528b524 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
17: 0x7fad17525453 - start_thread
18: 0x7fad1704cecc - clone
19: 0x0 - <unknown>
---- blas_spec::cuda::it_computes_correct_gemm_on_cuda_for_f32 stdout ----
thread 'blas_spec::cuda::it_computes_correct_gemm_on_cuda_for_f32' panicked at 'assertion failed: `(left == right)` (left: `[28, 7, 7, 28, 7, 7, 28, 7, 7]`, right: `[392, 98, 98, 392, 98, 98, 392, 98, 98]`)', tests/blas_specs.rs:488
stack backtrace:
1: 0x55e7c5289a20 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
2: 0x55e7c528ce7b - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
3: 0x55e7c528ca6c - std::panicking::default_hook::hc2c969e7453d080c
4: 0x55e7c528050f - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
5: 0x55e7c52814d8 - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
6: 0x55e7c51fd77f - blas_specs::blas_spec::cuda::it_computes_correct_gemm_on_cuda_for_f32::h819da5f7911be170
at /home/butler/packs/collenchyma-blas/<std macros>:8
7: 0x55e7c521b096 - _<F as std..boxed..FnBox<A>>::call_box::hebdedc6b66e381cc
8: 0x55e7c521d7db - std::sys_common::unwind::try::try_fn::h7c02806ebfbd3142
9: 0x55e7c5288bfb - __rust_try
10: 0x55e7c5288b8d - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
11: 0x55e7c521db5a - _<F as std..boxed..FnBox<A>>::call_box::h214ad3593915cb36
12: 0x55e7c528b524 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
13: 0x7fad17525453 - start_thread
14: 0x7fad1704cecc - clone
15: 0x0 - <unknown>
---- blas_spec::cuda::it_computes_correct_nrm2_on_cuda_for_f32 stdout ----
thread 'blas_spec::cuda::it_computes_correct_nrm2_on_cuda_for_f32' panicked at 'called `Result::unwrap()` on an `Err` value: Plugin(Operation("Unable to execute operation nrm2."))', ../src/libcore/result.rs:785
stack backtrace:
1: 0x55e7c5289a20 - std::sys::backtrace::tracing::imp::write::h9fb600083204ae7f
2: 0x55e7c528ce7b - std::panicking::default_hook::_$u7b$$u7b$closure$u7d$$u7d$::hca543c34f11229ac
3: 0x55e7c528ca6c - std::panicking::default_hook::hc2c969e7453d080c
4: 0x55e7c528050f - std::sys_common::unwind::begin_unwind_inner::h30e12d15ce2b2e25
5: 0x55e7c52814d8 - std::sys_common::unwind::begin_unwind_fmt::hb2de8a9968d38523
6: 0x55e7c5288c71 - rust_begin_unwind
7: 0x55e7c52c2f3f - core::panicking::panic_fmt::h257ceb0aa351d801
8: 0x55e7c51dd348 - core::result::unwrap_failed::h0d8273a186b5b477
at ../src/libcore/macros.rs:29
9: 0x55e7c51e4e06 - _<std..result..Result<T, E>>::unwrap::hd26718a3964659af
at ../src/libcore/result.rs:723
10: 0x55e7c51fbcf0 - blas_specs::blas_spec::cuda::it_computes_correct_nrm2_on_cuda_for_f32::h58eee3465d0af9f2
at tests/blas_specs.rs:443
11: 0x55e7c521b096 - _<F as std..boxed..FnBox<A>>::call_box::hebdedc6b66e381cc
12: 0x55e7c521d7db - std::sys_common::unwind::try::try_fn::h7c02806ebfbd3142
13: 0x55e7c5288bfb - __rust_try
14: 0x55e7c5288b8d - std::sys_common::unwind::inner_try::h47a4d9cd4a369dcd
15: 0x55e7c521db5a - _<F as std..boxed..FnBox<A>>::call_box::h214ad3593915cb36
16: 0x55e7c528b524 - std::sys::thread::Thread::new::thread_start::h6f266e069bf4ec2b
17: 0x7fad17525453 - start_thread
18: 0x7fad1704cecc - clone
19: 0x0 - <unknown>
failures:
blas_spec::cuda::it_computes_correct_dot_on_cuda_for_f32
blas_spec::cuda::it_computes_correct_gemm_on_cuda_for_f32
blas_spec::cuda::it_computes_correct_nrm2_on_cuda_for_f32
test result: FAILED. 23 passed; 3 failed; 0 ignored; 0 measured
error: test failed
Exact same as autumnai/collenchyma-nn#33
Add a framework operation support matrix to the README similar to the one present in collenchyma-nn.
The Float
trait boundary ist too restrictive and doesn't really serve any purpose:
pub trait IBlas<F: Float>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.