Error running the test
I just built hcBLAS and tried to run the test and got
-- Build files have been written to: /home/briansp/git/hcblas/build/test
Scanning dependencies of target sgemm_timer
Scanning dependencies of target sgemm_cn
Scanning dependencies of target sgemm
Scanning dependencies of target cgemm
Scanning dependencies of target dscal
Scanning dependencies of target dcopy
Scanning dependencies of target saxpy
Scanning dependencies of target scopy
[ 1%] Building CXX object src/CMakeFiles/bin/sgemm_timer.dir/sgemm_timer_test.cpp.o
[ 3%] Building CXX object src/CMakeFiles/bin/sgemm_cn.dir/sgemm_cn_test.cpp.o
[ 5%] Building CXX object src/CMakeFiles/bin/scopy.dir/scopy_test.cpp.o
[ 7%] Building CXX object src/CMakeFiles/bin/dscal.dir/dscal_test.cpp.o
[ 8%] Building CXX object src/CMakeFiles/bin/dcopy.dir/dcopy_test.cpp.o
[ 10%] Building CXX object src/CMakeFiles/bin/sgemm.dir/sgemm_test.cpp.o
[ 12%] Building CXX object src/CMakeFiles/bin/saxpy.dir/saxpy_test.cpp.o
[ 14%] Building CXX object src/CMakeFiles/bin/cgemm.dir/cgemm_test.cpp.o
/home/briansp/git/hcblas/test/src/sgemm_timer_test.cpp:77:10: error: elaborated
type refers to a typedef
enum CBLAS_ORDER order;
^
/usr/include/cblas.h:25:22: note: declared here
typedef CBLAS_LAYOUT CBLAS_ORDER; /* this for backward compatibility wit...
^
/home/briansp/git/hcblas/test/src/sgemm_timer_test.cpp:78:10: error: elaborated
type refers to a typedef
enum CBLAS_TRANSPOSE Transa, Transb;
^
/usr/include/cblas.h:20:69: note: declared here
typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSP...
^
/home/briansp/git/hcblas/test/src/sgemm_timer_test.cpp:81:5: error: use of
undeclared identifier 'Transb'; did you mean 'Transa'?
Transb = (typeB == NoTrans)?CblasNoTrans:CblasTrans;
^~~~~~
Transa
/home/briansp/git/hcblas/test/src/sgemm_timer_test.cpp:78:26: note: 'Transa'
declared here
enum CBLAS_TRANSPOSE Transa, Transb;
^
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:65:10: error: elaborated type
refers to a typedef
enum CBLAS_ORDER order;
^
/usr/include/cblas.h:25:22: note: declared here
typedef CBLAS_LAYOUT CBLAS_ORDER; /* this for backward compatibility wit...
^
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:66:10: error: elaborated type
refers to a typedef
enum CBLAS_TRANSPOSE Transa, Transb;
^
/usr/include/cblas.h:20:69: note: declared here
typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSP...
^
/home/briansp/git/hcblas/test/src/sgemm_cn_test.cpp:59:10: error: elaborated
type refers to a typedef
enum CBLAS_ORDER order;
^
/usr/include/cblas.h:25:22: note: declared here
typedef CBLAS_LAYOUT CBLAS_ORDER; /* this for backward compatibility wit...
^
/home/briansp/git/hcblas/test/src/sgemm_cn_test.cpp:60:10: error: elaborated
type refers to a typedef
enum CBLAS_TRANSPOSE Transa, Transb;
^
/usr/include/cblas.h:20:69: note: declared here
typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSP...
^
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:69:5: error: use of undeclared
identifier 'Transb'; did you mean 'Transa'?
Transb = (typeB == NoTrans)?CblasNoTrans:CblasTrans;
^~~~~~
Transa
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:66:26: note: 'Transa'/home/briansp/git/hcblas/test/src/sgemm_cn_test.cpp:63:5: error: use of
undeclared identifier 'Transb'; did you mean 'Transa'?
declared Transb = (typeB == NoTrans)?CblasNoTrans:CblasTrans;
^~~~~~
Transa
/home/briansp/git/hcblas/test/src/sgemm_cn_test.cpp:60:26: note: 'Transa'
declared here
enum CBLAS_TRANSPOSE Transa, Transb;
^
here
enum CBLAS_TRANSPOSE Transa, Transb;
^
/home/briansp/git/hcblas/test/src/sgemm_timer_test.cpp:125:37: error: use of
undeclared identifier 'Transb'
cblas_sgemm( order, Transa, Transb, M, N, K, alpha, A + aOffset...
^
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:108:41: error: use of
undeclared identifier 'Transb'
cblas_sgemm( order, Transa, Transb, M, N, K, alpha, A, lda, ...
^
/home/briansp/git/hcblas/test/src/sgemm_cn_test.cpp:98:37: error: use of
undeclared identifier 'Transb'
cblas_sgemm( order, Transa, Transb, M, N, K, alpha, A + aOffset...
^
/home/briansp/git/hcblas/test/src/cgemm_test.cpp:68:10: error: elaborated type
refers to a typedef
enum CBLAS_TRANSPOSE Transa, Transb;
^
/usr/include/cblas.h:20:69: note: declared here
typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSP...
^
/home/briansp/git/hcblas/test/src/cgemm_test.cpp:70:5: error: use of undeclared
identifier 'Transb'; did you mean 'Transa'?
Transb = (typeB == NoTrans)? CblasNoTrans: CblasTrans;
^~~~~~
Transa
/home/briansp/git/hcblas/test/src/cgemm_test.cpp:68:26: note: 'Transa' declared
here
enum CBLAS_TRANSPOSE Transa, Transb;
^
/home/briansp/git/hcblas/test/src/sgemm_test.cpp:161:45: error: use of
undeclared identifier 'Transb'
cblas_sgemm( order, Transa, Transb, M, N, K, alpha, Abat...
^
/home/briansp/git/hcblas/test/src/cgemm_test.cpp:125:37: error: use of
undeclared identifier 'Transb'
cblas_cgemm( order, Transa, Transb, M, N, K, &alpha, ablas, lda...
^
/home/briansp/git/hcblas/test/src/cgemm_test.cpp:196:35: error: use of
undeclared identifier 'Transb'
cblas_cgemm( order, Transa, Transb, M, N, K, &alpha, abatch...
^
4 errors generated.
5 errors generated.
src/CMakeFiles/bin/sgemm_cn.dir/build.make:62: recipe for target 'src/CMakeFiles/bin/sgemm_cn.dir/sgemm_cn_test.cpp.o' failed
make[2]: *** [src/CMakeFiles/bin/sgemm_cn.dir/sgemm_cn_test.cpp.o] Error 1
CMakeFiles/Makefile2:150: recipe for target 'src/CMakeFiles/bin/sgemm_cn.dir/all' failed
make[1]: *** [src/CMakeFiles/bin/sgemm_cn.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
src/CMakeFiles/bin/sgemm.dir/build.make:62: recipe for target 'src/CMakeFiles/bin/sgemm.dir/sgemm_test.cpp.o' failed
make[2]: *** [src/CMakeFiles/bin/sgemm.dir/sgemm_test.cpp.o] Error 1
CMakeFiles/Makefile2:187: recipe for target 'src/CMakeFiles/bin/sgemm.dir/all' failed
make[1]: *** [src/CMakeFiles/bin/sgemm.dir/all] Error 2
4 errors generated.
src/CMakeFiles/bin/sgemm_timer.dir/build.make:62: recipe for target 'src/CMakeFiles/bin/sgemm_timer.dir/sgemm_timer_test.cpp.o' failed
make[2]: *** [src/CMakeFiles/bin/sgemm_timer.dir/sgemm_timer_test.cpp.o] Error 1
CMakeFiles/Makefile2:113: recipe for target 'src/CMakeFiles/bin/sgemm_timer.dir/all' failed
make[1]: *** [src/CMakeFiles/bin/sgemm_timer.dir/all] Error 2
4 errors generated.
src/CMakeFiles/bin/cgemm.dir/build.make:62: recipe for target 'src/CMakeFiles/bin/cgemm.dir/cgemm_test.cpp.o' failed
make[2]: *** [src/CMakeFiles/bin/cgemm.dir/cgemm_test.cpp.o] Error 1
CMakeFiles/Makefile2:335: recipe for target 'src/CMakeFiles/bin/cgemm.dir/all' failed
make[1]: *** [src/CMakeFiles/bin/cgemm.dir/all] Error 2
[ 16%] Linking CXX executable bin/dcopy
[ 17%] Linking CXX executable bin/dscal
[ 19%] Linking CXX executable bin/saxpy
[ 21%] Linking CXX executable bin/scopy
[ 21%] Built target bin/dcopy
[ 21%] Built target bin/dscal
[ 21%] Built target bin/saxpy
[ 21%] Built target bin/scopy
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
./build.sh: line 112: /home/briansp/git/hcblas/build/test/unit/gtest/bin/unittest: No such file or directory
Is this expected?
Comments (10)
-
-
reporter Yes. I'm using 16.04 + ROCm 1.2. Do you think this is header file issue? hcc? If the issue is already known, I suppose I just need to wait...
-
No clue as to what is causing it . Yet to experience it first hand.
-
@briansp2020 checkout the fix https://bitbucket.org/multicoreware/hcblas/commits/36f0accb82d9745189628eaf26dc1a6d75bde131. Apologies for the delay. Only now got the chance to experience 16.04.
I am closing this issue
-
- changed status to resolved
-
- changed status to closed
-
reporter Hi, I wanted to try the fix so I pulled the latest commit and now I'm getting errors building the library.
[ 97%] Building CXX object lib/src/CMakeFiles/libhcblas.so.dir/hcblas.cpp.o /home/briansp/git/hcblas/lib/src/hcblas.cpp:97:27: error: no member named 'copy' in 'hc::accelerator_view' handle->currentAcclView.copy(x, y, elemSize * n); ~~~~~~~~~~~~~~~~~~~~~~~ ^ /home/briansp/git/hcblas/lib/src/hcblas.cpp:135:27: error: no member named 'copy' in 'hc::accelerator_view' handle->currentAcclView.copy(x, y, elemSize * n); ~~~~~~~~~~~~~~~~~~~~~~~ ^ /home/briansp/git/hcblas/lib/src/hcblas.cpp:174:27: error: no member named 'copy' in 'hc::accelerator_view' handle->currentAcclView.copy(A, B, elemSize * rows * cols); ~~~~~~~~~~~~~~~~~~~~~~~ ^ /home/briansp/git/hcblas/lib/src/hcblas.cpp:214:27: error: no member named 'copy' in 'hc::accelerator_view' handle->currentAcclView.copy(A, B, elemSize * rows * cols); ~~~~~~~~~~~~~~~~~~~~~~~ ^ 4 errors generated. lib/src/CMakeFiles/libhcblas.so.dir/build.make:1022: recipe for target 'lib/src/CMakeFiles/libhcblas.so.dir/hcblas.cpp.o' failed make[2]: *** [lib/src/CMakeFiles/libhcblas.so.dir/hcblas.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:87: recipe for target 'lib/src/CMakeFiles/libhcblas.so.dir/all' failed make[1]: *** [lib/src/CMakeFiles/libhcblas.so.dir/all] Error 2 Makefile:149: recipe for target 'all' failed make: *** [all] Error 2
I think it is related to commit 0433f70. Can you help?
-
Yes. am_copy is deprecated in the latest HCC. So we have moved to accl_view copy. You got to build LC from source, may be the next release would have the changes
-
I learn that the ROCM 1.3 release will have the hcc that will support this
-
reporter Thank you for your help. I'll wait for ROCm 1.3 release. I hope to see it soon!
- Log in to comment
@briansp2020 I guess you are using ubuntu version 16.04 . This has been reported internally for that particular version. What we have does work on ubuntu 14.04. We are yet to experience this on 16.04 and find a fix for this