rocmarchive / hcblas Goto Github PK
View Code? Open in Web Editor NEWThis repository has been DEPRECATED. Please use rocBLAS.
This repository has been DEPRECATED. Please use rocBLAS.
I think there may be an unneeded #include in the hipblas.cpp file:
https://github.com/ROCmSoftwarePlatform/hcBLAS/blob/master/lib/src/hcc_detail/hipblas.cpp#L3
On ROCm 1.5's HIP, I get this error when building hcblas:
/root/hcblas/lib/src/hcc_detail/hipblas.cpp:3:10: fatal error: 'hip/hcc_detail/hcc_acc.h' file not found
After removing that specific include statement, the hcblas build is successful.
Definitions of hipblas*
functions in /lib/include/hcc_detail/hip_blas.h and in /lib/include/nvcc_detail/hip_blas.h are not the same: in certain places const
qualifiers are missing in /lib/include/nvcc_detail/hip_blas.h. I'm not sure why those const
qualifiers were removed since corresponding cublas*
functions have them.
For example: hipblasSgemm
I was testing with master branch, and here is the error messages:
[ 50%] Building CXX object lib/src/CMakeFiles/hipblas_nvcc.dir/nvcc_detail/hipblas.cpp.o In file included from /opt/rocm/hip/include/hip/hip_complex.h:30:0, from /root/hcBLAS/lib/src/../include/nvcc_detail/hip_blas.h:25, from /root/hcBLAS/lib/src/../include/hipblas.h:59, from /root/hcBLAS/lib/src/nvcc_detail/hipblas.cpp:22: /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h: In function 'float hipCabsf(hipFloatComplex)': /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h:67:20: error: 'p' was not declared in this scop e return cuCabsf(p, q); ^ /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h:67:23: error: 'q' was not declared in this scop e return cuCabsf(p, q); ^ /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h: In function 'hipDoubleComplex hipCsqabs(hipDou bleComplex)': /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h:89:22: error: could not convert '(cuCabs(z) * c uCabs(z))' from 'double' to 'hipDoubleComplex {aka double2}' return cuCabs(z) * cuCabs(z); ^ /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h: In function 'hipDoubleComplex hipCfma(hipCompl ex, hipComplex, hipComplex)': /opt/rocm/hip/include/hip/nvcc_detail/hip_complex.h:127:26: error: could not convert 'p' from 'hipC omplex {aka float2}' to 'cuDoubleComplex {aka double2}' return cuCfma(p, q, r); ^
Here is my build script:
cd ~ && git clone -b master https://github.com/ROCmSoftwarePlatform/hcBLAS.git
cd hcBLAS && ./build.sh
dpkg -i build/*.deb
cd /opt/rocm/hcblas/lib && ln -s libhipblas_hcc.so libhipblas.so
When running build.sh, I get the following error:
Run CPack packaging tool...
CPack: Create package using DEB
CPack: Install projects
CPack: - Run preinstall target for: Project
CPack: - Install project: Project
CPack: Create package
CPack: - package: /home/sthornto/hcBLAS/build/hcblas-master-eec6c26-Linux.deb generated.
CPack: Create package using TGZ
CPack: Install projects
CPack: - Run preinstall target for: Project
CPack: - Install project: Project
CPack: Create package
CPack: - package: /home/sthornto/hcBLAS/build/hcblas-master-eec6c26-Linux.tar.gz generated.
[ 51%] Built target hipblas_hcc
[100%] Built target hcblas
./build.sh: line 153: cd: /home/sthornto/hcBLAS/build/packaging/: No such file or directory
For my own build, I can just hack build.sh to create the proper directory, but I don't know if this is the correct long term solution.
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.