From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dmta1009.nifty.com (mta-snd01014.nifty.com [106.153.227.46]) by sourceware.org (Postfix) with ESMTPS id A89D93858C62 for ; Wed, 3 Jan 2024 14:08:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A89D93858C62 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A89D93858C62 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=106.153.227.46 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704290912; cv=none; b=YFrxmnMVoM5+UUJRxrm2HqiAmu5JHgk37aMcWEDho+LBsWmGRgJt593cmyQC3JjNssv2G30J7oWawkHJOA7csWGDWIfCK3GgXh35v1S8akZ70B6jbFh0MnKdAy+DAvx2mLFLmtcZ1XfPkWEfNLKEv9IXIPAD0Fqj5gM9Gw84dOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704290912; c=relaxed/simple; bh=O93sndA6L6kVytxWgJYK2AFJB51YPigoXG9fN/AjAmI=; h=Date:From:To:Subject:Message-Id:Mime-Version; b=bjb2yuwdN4wVQF/b9pqboFh9EvtngnYUT818o58BN0wkoSdMTSOC/Gn60ZeYlLK4J3hqslq5IkXfRBz2dISF93+c1Hv7RrxahP7nCdDTcvfwxTbX6ASq1Y8LwVZMMAk0+A3dZf2BBHnUzvmYTo/Urn3fe10dTocKAbh62+w6UTI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from HP-Z230 by dmta1009.nifty.com with ESMTP id <20240103140826894.WRKR.65055.HP-Z230@nifty.com> for ; Wed, 3 Jan 2024 23:08:26 +0900 Date: Wed, 3 Jan 2024 23:08:27 +0900 From: Takashi Yano To: cygwin-apps@cygwin.com Subject: Re: [ITA] pocl Message-Id: <20240103230827.98ecd39b918605c7c0d59e2a@nifty.ne.jp> In-Reply-To: <20240103213002.d0fc284413dd28233217941b@nifty.ne.jp> References: <20240103141412.d00b68976af90778eb7e7c03@nifty.ne.jp> <20240103142533.ee77d69e3a93cea0275cfd00@nifty.ne.jp> <90ac340c-236b-4ec2-b304-37564da46320@gmail.com> <20240103182954.954d9470d93c013e2b73a67a@nifty.ne.jp> <20240103210007.548250af5b62f082bc441d8c@nifty.ne.jp> <20240103213002.d0fc284413dd28233217941b@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, 3 Jan 2024 21:30:02 +0900 Takashi Yano wrote: > On Wed, 3 Jan 2024 21:00:07 +0900 > Takashi Yano wrote: > > On Wed, 3 Jan 2024 04:38:02 -0700 > > Brian Inglis wrote: > > > On 2024-01-03 02:29, Takashi Yano via Cygwin-apps wrote: > > > > On Wed, 3 Jan 2024 08:54:17 +0100 > > > > Marco Atzeri wrote: > > > >> On 03/01/2024 06:25, Takashi Yano via Cygwin-apps wrote: > > > >>> On Wed, 3 Jan 2024 14:14:12 +0900 > > > >>> Takashi Yano via Cygwin-apps wrote: > > > >>>> I'd like to adopt the pocl package. > > > >>>> - Update to latest upstream release. > > > > > > >> $ git diff |grep "^+" > > > >> +++ b/cygwin-pkg-maint > > > >> +pocl Takashi Yano > > > > > > >>> Sorry, the latest upstream release is 5.0 however, 4.0 and later > > > >>> cannot be built in current cygwin because LLVM package is old. > > > >>> This update is up to 3.1. > > > > > > >>>> - Enable CUDA support. > > > > > > >> Curiosity, how do we support CUDA on Cygwin ? > > > > > > > nvidia cuda toolkit is used in build stage of user programs. > > > > Although this is not very desirable for cygwin package, I thought > > > > that the advantage of being able to use the GPU was greater than > > > > the disadvantage. > > > > However, on the second thought, cuda support should be a separeted > > > > package from the base package, and suggest installing cuda toolkit > > > > in the install stage of of that package. > > > > Let me consider a bit. If you have any idea, please let me know. > > > > > > Please note CUDA is Nvidia proprietary closed source - I do not think we can or > > > should touch it when OpenCL 3+ supports Nvidia devices. > > > Fedora does not support CUDA although others do in their non-free "sources". > > > > We do not touch CUDA itself or distribute its binaries, but just use binaries > > distributed by NVIDIA. Source code in pocl is not NVIDIA proprietary. In that > > sense, cygwin itself uses microsoft proprietary closed source modules. > > > > So, enabling CUDA support in pocl should also be allowed, I think. > > D'oh! I missed that libpocl-devices-cuda.so is linked with cuda.lib > from CUDA Toolkit. > > I'll give up enabling CUDA support for pocl. Ah, cuda.lib is just a import library for nvcuda.dll, so we can easily create non-proprietary import library using dlltool. Then, libpocl-devices-cuda.so will be free from NVIDIA binaries just like libkernel32.a of w32api-runtime. -- Takashi Yano