You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2019/07/19 03:42:46 UTC

[incubator-mxnet] 26/28: add/test the support with Openblas in Windows X64

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to tag v1.1
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit d39c23bc9235fad00528ea6fdb5d0caed7f0c8b6
Merge: bc8aa84 4b69a12
Author: SiNZeRo <fl...@gmail.com>
AuthorDate: Sat Dec 27 14:37:46 2014 +0000

    add/test the support with Openblas in Windows X64

 example/basic-matrix-dot.cpp | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --cc example/basic-matrix-dot.cpp
index 0000000,0000000..5c5485b
new file mode 100644
--- /dev/null
+++ b/example/basic-matrix-dot.cpp
@@@ -1,0 -1,0 +1,20 @@@
++// header file to use mshadow
++#include "mshadow/tensor.h"
++// this namespace contains all data structures, functions
++using namespace mshadow;
++// this namespace contains all operator overloads
++using namespace mshadow::expr;
++
++int main( void ){
++    // intialize tensor engine before using tensor operation, needed for CuBLAS
++    InitTensorEngine();
++
++    Tensor<cpu,2> mat = NewTensor<cpu>( Shape2(1000,1000), 1.0 ); 
++	for (int i=0;i<100;i++)
++		mat = dot(mat, mat);
++	FreeSpace(mat);
++    // shutdown tensor enigne after usage
++	
++    ShutdownTensorEngine();
++    return 0;
++}