简体   繁体   中英

OpenCL in Eclipse-CDT (Windows) using AMD Graphics Card

I am trying to link OpenCL libraries with Eclipse (luna) CDT (with GCC, version-4.9.1) on my Windows(8.1,64 Bit) machine. I have installed AMD APP SDK 2.9-1.

To configure Eclipse, I followed this tutorial and linked the corresponding include folder (C:\\Program Files(x86)\\AMD APP SDK\\2.9-1\\include) and library (C:\\Program Files(x86)\\AMD APP SDK\\2.9-1\\lib\\x86_64) on my machine.

To test the OpenCL libraries, I took the sample code from here . But, when I am building the project, I am getting the following error.

Description Resource Path Location Type make: *** [OpenCL_Test] Error 1 OpenCL_Test C/C++ Problem

How to fix this error?

Follow this link for library and include folder setup. Additional step is to go to Properties -> C/C++ build -> Setting -> Cross GCC Linker -> Binary Parser (it's a tab). Under Binary Parsers, I ticked all of the options and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM