Skip to content
Unverified Commit 3c9aee68 authored by Matthias Diener's avatar Matthias Diener Committed by GitHub
Browse files

PytatoPyOpenCLArrayContext: use SVM allocator if available, limit arg size for GPUs (#189)



* LazilyPyOpenCLCompilingFunctionCaller: limit arg size for GPUs

* move limit

* also check for SVM presence

* get_target()

* memoize get_target

* UNDO BEFORE MERGE: use dev branches

* Hackety hack: SVM detection in actx constructor

* check whether passed allocator supports SVM

* undo loopy branch

* implement it for the base class

* subclass LoopyPyOpenCLTarget

* set actual limit

* undo pytato branch

* remove unused argument

* add type annotations

* add logging

* Refactor arg size passing to put less logic in the target

* flake8

* add a test

Co-authored-by: default avatarAndreas Kloeckner <inform@tiker.net>
parent 1593a67b
Loading
Loading
Loading
Pipeline #339818 failed with stage
in 1 hour, 24 minutes, and 8 seconds