EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: OpneCL and base and IOC
From: Jeong Han Lee via Tech-talk <[email protected]>
To: [email protected]
Date: Thu, 26 Sep 2019 11:42:36 +0200


On 9/26/19 4:15 AM, Ha, Kiman via Tech-talk wrote:
Hello All,

I have a plan to use the OpenCL API and library with epics IOC.

The platform is Linux 64bit.

My build option is to use the “xcpp” compiler instead of the “gcc”.

The “xcpp" compiler is Xilinx C++ compiler which is based on GNU compiler collection.

With below build options:

CXXFLAGS += -std=c++14

LDFLAGS += -lOpenCL


 Hi Kiman,

 I am sorry, I didn't focus your questions in my previous email.

My questions are:

 1. Do I need re-build base using the “xcpp” compiler?

               If yes, which base configuration files need to change?


If you need the cross compiler toolchain to compile the EPICS base, you have to check it within
  https://github.com/epics-base/epics-base/tree/7.0/configure/os

In base/configure/CONFIG_SITE, you can define CROSS_COMPILER_TARGET_ARCHS in order to match your Xilinx toolchain.

If you cannot find one to match your own, you have to create one to match your toolchain environment.

You can find almost every information in base/confgure/os. In addition, the following path may help you to do so

  https://github.com/icshwi/e3-base/tree/master/configure/os

 2. Or only my IOC application need to add the OpenCL library with
    "xcpp" compiler?

Yes, you only need OpenCL library, and (maybe) header files in your IOC application makefile or configuration files, which I explained in my previous email.


  HTH,
  Han



Thanks,

Kiman


References:
OpneCL and base and IOC Ha, Kiman via Tech-talk

Navigate by Date:
Prev: Re: OpneCL and base and IOC Jeong Han Lee via Tech-talk
Next: error binding socket Alfio Rizzo via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: OpneCL and base and IOC Jeong Han Lee via Tech-talk
Next: error binding socket Alfio Rizzo via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024