clMathLibraries / clBLAS

a software library containing BLAS functions written in OpenCL
Apache License 2.0
839 stars 240 forks source link

small issue in /samples/example_ctrsm.c #319

Open CaptainSifff opened 7 years ago

CaptainSifff commented 7 years ago

Compiling with gcc-4.9 and the Intel OpenCL ICD(cmake says that this is an OpenCL 1.2 implementation) I received the following error in example_ctrsm.c: [ 44%] Building C object samples/CMakeFiles/example_ctrsm.dir/example_ctrsm.c.o /home/sifff/Development/clBLAS/src/samples/example_ctrsm.c: In function ‘printResult’: /home/sifff/Development/clBLAS/src/samples/example_ctrsm.c:74:48: error: ‘FloatComplex’ has no member named ‘x’ printf("%.5f ", result[i * ldb + j].x); ^

changing result[i ldb + j].x to result[i ldb + j].s[0] fixes the issue.