From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6D583FC3 for ; Tue, 14 Sep 2021 13:08:03 +0000 (UTC) Received: by mail-lj1-f181.google.com with SMTP id p15so23741156ljn.3 for ; Tue, 14 Sep 2021 06:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tEfQKqhEOqxLeMLucMBuPBhbUXwUoi2vQfL1xzKd6ps=; b=BkWrtL4w+kdsCPXYM+02jFH+UuR7skrOHTO4CoF+WVY/opIB4E9j4zuznCw/1B1153 8rAtHI6sbK1FnJD98RKPDDAQLEAkLMPlxGRaSIzURDBvrV+o9iYIJlYJAhDva9hdc5Vr OC7JhSBecVTUX0XkaWiaOtxr0qtc19/50K4ASYA9mI6P+aq1XBSJ8CmyuAL+hGIDbGeK SdyhSNYHztUexKvrVl9DeK43U2+7xRK86jQ6jsTzhlCGNvZDugSCX0iUCqaXpBuxl5Dg vnUXXwd1uA2JJ0iVZfQWA51OA4JaqQeNSru6iu9AGH4mxuieDoNwdZlGF9O6Dvs5HMlf Isqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tEfQKqhEOqxLeMLucMBuPBhbUXwUoi2vQfL1xzKd6ps=; b=Ih8VaY2xLKb/bopYDKzQ0MoJgxtxmCE1jxn+j0wJAdbN1TWlual0kfjzJS4dXdAWaF VP1knhiKCy3wZ64Afesz6jbw/H6yhLAKr6NadBexXCigkqqLAMR63OYpEPbFWqG4Lle4 Z7AMHDcOPw/1xmriOGBeknq5kdeGaGriOG3LOUwhboB2G6DfDqjSCdFaNupvX4L3XG36 KZSOq/2yR7XfkfiBo+r8/2vPr6NFSVNzqJAOMTG+3LeGsf9ZLKZZ06mzEAFZIg/oevgi 0/5n7WA4j3itr2vkMUimp7zjcMXJ2Coov/fd0tEvOUhMUif1Col8qV23WpQsk+NfFI7Q YhdA== X-Gm-Message-State: AOAM530nPwtR1LwzcgP5vAQpuqjpoaeujD6Kp4WfEpnRbkU2h9ClPrWI ITmJ7QQupQt1vD4YGuRq7dqL9xqtudCRiA/opJztGA== X-Google-Smtp-Source: ABdhPJwZ2uqSMHW99bUwuW3Pnkoep060C6jEQojp32uDgOu/noNm5UAB0fOVNqvAxTWtRWHuTxfEU1ak6fA8p0Mawhk= X-Received: by 2002:a05:651c:11c7:: with SMTP id z7mr15119085ljo.288.1631624881872; Tue, 14 Sep 2021 06:08:01 -0700 (PDT) Precedence: bulk X-Mailing-List: ksummit@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <87ilz8c7ff.ffs@tglx> In-Reply-To: From: Linus Walleij Date: Tue, 14 Sep 2021 15:07:50 +0200 Message-ID: Subject: Re: [MAINTAINER SUMMIT] User-space requirements for accelerator drivers To: Arnd Bergmann Cc: Dave Airlie , Daniel Vetter , Greg KH , Leon Romanovsky , Laurent Pinchart , Thomas Gleixner , Josh Triplett , Mauro Carvalho Chehab , Jonathan Corbet , ksummit@lists.linux.dev, dev@tvm.apache.org Content-Type: text/plain; charset="UTF-8" On Mon, Sep 13, 2021 at 3:20 PM Arnd Bergmann wrote: > One straightforward hardware independent low-level API would > be the traditional BLAS GEMM call[1] for matrix multiplication > and its variants (integer, float, bfloat16, ...). What this (and subsequent posts from Dave and Daniel) show, is that the general pattern is that what we are accelerating is no longer the specialized use cases of linear algebra such as 3D "shaders" or whatever inference linear algebra NPUs are doing, which appear to include regression, bayesian stuff, gaussian quadrature... name it. What we are talking about here is acceleration, using an efficient data path, of numerical analysis, using tailored hardware. I'm not even sure we are limited to linear algebra anymore. Is this what is happening, and should we be thinking numerical analysis accelerators and their different shapes and sizes rather than usecase-foo-accelerators, so we don't end up with this situation again the next time applied math comes knocking on the door with their next usecase? Yours, Linus Walleij