From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Artificial Intelligence libraries in ADA Date: Sat, 14 Jan 2023 20:35:07 +1100 Organization: A noiseless patient Spider Message-ID: References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> <9becf5e6-1e77-4711-a4bb-1c7a5465e804n@googlegroups.com> <8f87c00c-1043-4452-8cee-ce437c0fafcfn@googlegroups.com> <29948ab4-9b39-4996-bcb8-3a2f7f509225n@googlegroups.com> <624d767b-ce04-46b0-8a5c-1999a86d3a1an@googlegroups.com> <77030e13-e4fc-4675-ac54-9d3047cf992cn@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 14 Jan 2023 09:34:50 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="71fab9900556464b6d291dbc4d20b810"; logging-data="2042163"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NAs9xrb6GQ0fmA/PTT6wB9vP9QgC06D0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cancel-Lock: sha1:xtNIQSLP5JpI69oDv9R+vxdeEzo= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:64827 List-Id: On 14/1/23 09:08, Roger Mc wrote: > On Friday, January 13, 2023 at 6:18:58 PM UTC+11, roda...@gmail.com wrote: >> Would you able to send me a patch file for the bits which did need >> adjusting, so I can add it to the cBound repo ? > > Probably easier if I just report changes that I found necessary to get it to work. > A patch file would probably include stuff specific to my own installation and formatting preferences. > 1. I removed "-lpthread" from Builder sections of the project (gpr) files due to builder complaint. > 2. In tensorflow_wrap.c I needed to change > #include > to > #include > 3. In tensorflow.gpr I needed to change > with "swig"; > to > with "../../../tier-0/swig/library/swig.gpr"; > 4. In tensorflow.gpr I added my path to tensorflow/c/c_api.h to the Source_Dirs > In my case: "/usr/local/Cellar/libtensorflow/2.11.0/include" > 5. Not sure whether or not I caused this diff statement for the gpr files: > -end hello_TF; > \ No newline at end of file > +end Hello_TF; > 6. In hello_tf.gpr: > -with > - "tensorflow", > - "swig"; > +with "../../../library/tensorflow.gpr"; > Presumably with is "swig" redundant as imported by tensorflow.gpr > Thanks. I've opened an issue for these problems in the github cBound repo ... https://github.com/charlie5/cBound/issues/2 Perhaps we can continue there. This thread is getting a bit *big* :) .