Skip to content

Vendor-agnostic device information #617

Closed

Description

@efaulhaber

It would be nice if we could do something like KernelAbstractions.devices(backend) or so to print the name of the device we're working on.
And even further: a KernelAbstractions.versioninfo(backend) to print the CUDA version and so on. This could be very useful for logging.

Activity

  1. vchuravy commented on Jun 25, 2025

    @vchuravy
    Member

    Might also make sense to add versioninfo(backend).

  2. pxl-th commented on Jul 2, 2025

    @pxl-th
    Member

    Maybe even an interface to query common device properties. Currently I have to define extensions to query for amount of shared memory available on the device:
    https://github.com/pxl-th/NNop.jl/tree/master/ext

  3. added this to the 0.10.0 milestone on Jun 10, 2026
  4. christiangnrd commented on Jun 18, 2026

    @christiangnrd
    Member

    versioninfo interface should be versioninfo(io::IO=stdout, backend). This should be trivial to implement for all backends except for AMDGPU which doesn't currently take an io::IO parameter in its versioninfo

  5. modified the milestones: 0.10.0, 0.11.0 on Oct 3, 2026
  6. added
    runtime
    and removed
    good first issue
    on Oct 19, 2026
  7. maleadt commented on Oct 19, 2026

    @maleadt
    Member

    KernelAbstractions.versioninfo([io], backend) was added in #712 and is implemented by all back ends, printing the toolchain and the device. Device properties such as KernelInterface.multiprocessor_count, max_work_group_size and sub_group_size came with #635; requests for other specific properties can get their own issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    runtime

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions