EPICS Controls Argonne National Laboratory

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:31:37 +0200
Hi Kiman,


There are many different places which you can use in order to add them.

One example, you can put them in configure/CONFIG_SITE

USR_INCLUDES += -I/usr/include/CL
USR_LDFLAGS += -lOpenCL
PROD_LDLIBS += -lOpenCL

or
USR_INCLUDES += -I/usr/include/CL
USR_LDFLAGS += `pkg-config --libs OpenCL`
PROD_LDLIBS += `pkg-config --libs OpenCL`

And you can also put the similar things in yourApps/src/Makefile where you compile your source codes with opencl api functions.



Some hints which you may get in the following codes:

https://github.com/epics-modules/ecmc/blob/master/devEcmcSup/Makefile#L25

https://github.com/epics-modules/ecmc/blob/master/devEcmcSup/Makefile#L29

https://github.com/epics-modules/asyn/blob/master/asyn/Makefile#L36

https://github.com/epics-modules/ecmc/blob/master/configure/CONFIG_SITE#L38


HTH,
Han


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

My questions are:

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

               If yes, which base configuration files need to change?

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

Thanks,

Kiman


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

Navigate by Date:
Prev: OpneCL and base and IOC Ha, Kiman via Tech-talk
Next: Re: OpneCL and base and IOC Jeong Han Lee 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: OpneCL and base and IOC Ha, Kiman via Tech-talk
Next: Re: OpneCL and base and IOC Jeong Han Lee 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 
ANJ, 26 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·