Hello,

I hope this email finds you well. I am writing to seek assistance regarding
challenges I have encountered while integrating ViennaCL into my project
and configuring it to work with OpenCL.

Initially, I was puzzled by a significant performance gap between GPU and
CPU executions when performing matrix multiplication operations using the
Eigen and ViennaCL libraries in C++. However, upon further investigation, I
discovered that ViennaCL needs to be explicitly instructed to utilize
OpenCL for GPU computations.

In an attempt to address this issue, I added the necessary configuration
flags to my premake script, including defining VIENNACL_WITH_OPENCL,
linking to OpenCL libraries, and specifying library directories. However,
despite these efforts, I encountered compilation errors that I have been
unable to resolve.The error message I received reads as follows:

terminate called after throwing an instance of
'viennacl::ocl::unknown_error'
  what():  ViennaCL: FATAL ERROR: ViennaCL encountered an unknown OpenCL
error. In some cases, this might be due to an invalid global work size, but
it can also be due to several compilation errors.
If you think that this is a bug in ViennaCL, please report it at
[email protected] and supply at least the following
information:
 * Operating System
 * Which OpenCL implementation (AMD, NVIDIA, etc.)
 * ViennaCL version

Despite my best efforts, I have been unable to extract relevant information
from the documentation to properly configure ViennaCL for my project. I
have reviewed example CMake configurations provided with ViennaCL but have
struggled to apply them to my premake setup.

At this juncture, I find myself at an impasse and am reaching out to seek
guidance and assistance from the community. If you have any insights,
suggestions, or solutions regarding the correct configuration of ViennaCL
with OpenCL, or if you can offer assistance in resolving the compilation
errors I have encountered, I would greatly appreciate your ideas.

link to my question in stack:
https://stackoverflow.com/questions/78437721/performance-discrepancy-between-gpu-and-cpu-for-matrix-multiplication-eigen-vs

Thank you very much for your time and assistance. I look forward to hearing
from you soon.

Best regards,

-- 
Francisco Ossian Lopes Neto
_______________________________________________
ViennaCL-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viennacl-support

Reply via email to