logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sys::Info::Device

Author

       Burak Gursoy <burak@cpan.org>

Description

       This is an interface to the available devices such as the "CPU".

Methods

newDEVICE_ID
       Returns an object to the related device or dies if "DEVICE_ID" is bogus or false.

       If "DEVICE_ID" has the value of "available", then the names of the available devices will be returned.

Name

       Sys::Info::Device - Information about devices

See Also

       Sys::Info::Device::CPU, Sys::Info.

Synopsis

           use Sys::Info;
           my $info      = Sys::Info->new;
           my $device    = $info->device( $device_id );
           my @available = $info->device('available');

       or

           use Sys::Info::Device;
           my $device    = Sys::Info::Device->new( $device_id );
           my @available = Sys::Info::Device->new('available');

Version

       version 0.7807

See Also