DiCE API nvidia_logo_transpbg.gif Up
igpu_description.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_IGPU_DESCRIPTION_H
8#define MI_NEURAYLIB_IGPU_DESCRIPTION_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
25class IGpu_description : public
26 mi::base::Interface_declare<0x1e2e02ff,0xf083,0x4a12,0xb7,0xda,0x02,0x58,0xb6,0xd0,0x04,0x75>
27{
28public:
30 virtual Uint32 get_id() const = 0;
31
35 virtual const char* get_name() const = 0;
36
38 virtual Sint64 get_memory_size() const = 0;
39
43 virtual bool get_tcc_flag() const = 0;
44
46 virtual Sint32 get_cuda_device_id() const = 0;
47
50
53
55 virtual Sint32 get_clock_rate() const = 0;
56
58 virtual Sint32 get_multi_processor_count() const = 0;
59
61 virtual Sint32 get_pci_bus_id() const = 0;
62
64 virtual Sint32 get_pci_device_id() const = 0;
65
69 virtual bool is_attached_to_display() const = 0;
70
73 virtual bool get_optimus_flag() const = 0;
74};
75 // end group mi_neuray_configuration
77
78} // namespace neuraylib
79
80} // namespace mi
81
82#endif // MI_NEURAYLIB_IGPU_DESCRIPTION_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
This interface describes a GPU.
Definition: igpu_description.h:27
virtual bool get_tcc_flag() const =0
Indicates whether the GPU is in TCC mode.
virtual Sint64 get_memory_size() const =0
Returns the GPU memory in bytes (or -1 in case of failures).
virtual bool is_attached_to_display() const =0
Indicates whether the GPU is attached to a display.
virtual Sint32 get_pci_bus_id() const =0
Returns the PCI bus ID (or -1 in case of failure).
virtual Sint32 get_multi_processor_count() const =0
Returns the number of multiprocessors, or -1 if the GPU is not a CUDA device.
virtual Sint32 get_cuda_compute_capability_minor() const =0
Returns the CUDA compute capability (minor), or -1 if the GPU is not a CUDA device.
virtual const char * get_name() const =0
Returns the GPU name.
virtual bool get_optimus_flag() const =0
Returns true if the GPU is part of an Optimus/mixed internal+discrete GPU setup (Windows only),...
virtual Sint32 get_cuda_device_id() const =0
Returns the CUDA device ID, or -1 if the GPU is not a CUDA device.
virtual Uint32 get_id() const =0
Returns the GPU ID.
virtual Sint32 get_clock_rate() const =0
Returns the clock rate in kilohertz, or -1 if the GPU is not a CUDA device.
virtual Sint32 get_cuda_compute_capability_major() const =0
Returns the CUDA compute capability (major), or -1 if the GPU is not a CUDA device.
virtual Sint32 get_pci_device_id() const =0
Returns the PCI device ID (or -1 in case of failure).
long long Sint64
64-bit signed integer.
Definition: types.h:61
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
signed int Sint32
32-bit signed integer.
Definition: types.h:46
Mixin class template for deriving new interface declarations.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: dice.h:89