CONDOR_GPU_DISCOVERY(1)
π condor_gpu_discovery β the HTCondor Manual, but make it make sense π
okay bestie, so this is condor_gpu_discovery from the HTCondor Manual, and no cap it's the tool that goes and finds your GPUs and tells you about them. Buckle up. π
β¨ NAME β¨
condor_gpu_discovery β HTCondor Manual
It displays detected GPU related information in ClassAd format. that's the whole vibe. π¦
π SYNOPSIS π
condor_gpu_discovery -help
condor_gpu_discovery [-properties] [-extra] [-dynamic] [-not-nested |
-nested] [-prefix string] [-tag string] [-mixed] [-short-uuid | -uuid]
[-by-index] [-cuda] [-hip] [-opencl] [-simulate:D[,N[,D2,N2,...]]]
[-config] [-repeat [N]] [-divide [N]] [-packed] [-cron] [-verbose]
[-diagnostic] [-nvcuda] [-cudart] [-dirty-environment]
periodt. that's your whole invocation menu right there. π
πΈ DESCRIPTION πΈ
so basically it displays the capabilities of the GPU's discovered on the host machine, and it does it in ClassAd format. period.
rn this tool can discover CUDA, HIP, and OpenCL devices β which ones it actually finds depends on which libraries it manages to locate while it's running. iykyk.
and here's the important part, bestie: the GPU devices it detects reflect what GPU's HTCondor jobs will find on the host machine for execution. so it's not just a random list, it's literally the truth of what your jobs see. π
also: the condor_startd runs this tool automatically at startup to detect GPUs. so if the startd isn't advertising GPUs like you expected, an admin can just run this tool by hand to help debug the problem. and listen β if a manual run of condor_gpu_discovery doesn't show the expected GPUs, then the startd is probably not gonna show them either. π that's just how it is.
π OPTIONS π
-helpβ Print usage information and exit. the classic. π-propertiesβ Display GPU property information in addition toDetectedGPUs, either as nested ClassAds or prefixed with the prefix string. check out table 1.1 for the deets. β¨-nestedβ Display properties common to all GPUs in a Common nested ClassAd. Every property that's unique to a specific GPU device goes in its own nested ClassAd, and that ClassAd's attribute name is theGPUid. fun fact: this is the default behavior. π-not-nestedβ Display properties common to all GPUs as an attribute prefixed withCUDAorOCL. All the properties unique to a GPU device become an attribute prefixed with theGPUid. π¦-extraβ Display extra attributes about the GPUs, either as nested ClassAds or prefixed with the prefix string. see table 1.2. π-dynamicβ Display attributes of NVIDIA devices that change values as the GPU is working, either as nested ClassAds or prefixed by the prefix string. see table 1.3. π₯-mixedβ When displaying attribute values, assume the machine has a heterogeneous set of GPUs, so always include the integer value in the prefix string. π-device <N>β Display properties only for GPU device N, where N is the integer value defined for the prefix string. wanna do multiple devices? just use this option more than once. this option adds to the device(s) specified by the environment variablesCUDA_VISIBLE_DEVICESandGPU_DEVICE_ORDINAL, if any. π-tag stringβ Redefine theDetectedGPUsattribute name to use the specified string instead of"GPUs", giving youDetected<ResourceTag>. β-prefix stringβ Specify the prefix string to use as the prefix for attribute naming. π-by-indexβ Use the prefix and the device index as the device identifier. π-short-uuidβ Use the first 8 characters of the NVIDIA uuid as the device identifier. when you use this, devices show up asGPU-<xxxxxxxx>where<xxxxxxxx>is the first 8 hex digits of the NVIDIA device uuid. and why do we care? because unlike device indices, the uuid of a device will not change if other devices are taken offline or drained. iconic behavior honestly. π-uuidβ Use the full NVIDIA uuid as the device identifier rather than the device index. the whole thing. no cutting. π―-simulate:D[,N[,D2,N2,...]]β For testing purposes, assume that N devices of type D were detected, and no discovery software is invoked. see table 2.1 for the available GPU devices you can simulate. π§-cudaβ Use CUDA detection and do not use OpenCL for detection even if no GPUs are detected. π―-hipβ Use HIP 6 for detection and do not use OpenCL even if no GPUs are detected. π-openclβ Detection via OpenCL rather than CUDA or HIP. π-configβ Output in the syntax of HTCondor configuration instead of ClassAd language. it also produces one extra attribute,NUM_DETECTED_GPUs, which is set to the number of GPUs detected. π’-repeat [N]β Repeat the listed GPUs N times (default2). this gives you a list that looks likeCUDA0, CUDA1, CUDA0, CUDA1. π
heads up: if you use it with-divide, the last one on the command-line wins β but you must specify2if you want it; the default value only applies to the first flag. don't get caught out bestie. π
-divide [N]β Like-repeat, except it also divides the attributeGlobalMemoryMbby N. this may help you avoid overcommitting your GPU's memory. π§
same energy as above: if you use it with-repeat, the last one on the command-line wins, but you must specify2if you want it; the default value only applies to the first flag. π«
-packedβ When repeating GPUs, repeat each GPU N times, not the whole list. this gives you a list that looks likeCUDA0, CUDA0, CUDA1, CUDA1. π¦-cronβ This option suppresses theDetectedGpusattribute so the output is suitable for use withcondor_startdcron. combine it with the-dynamicoption to periodically refresh the dynamic GPU information, like temperature. for example, to refresh GPU temperatures every 5 minutes:
use FEATURE : StartdCronPeriodic(DYNGPUS, 5*60, $(LIBEXEC)/condor_gpu_discovery, -dynamic -cron)
slay. β°
-verboseβ For interactive use of the tool β output extra information to show detection while it's in progress. like a little progress bar for your soul. π«Ά-diagnosticβ For interactive use of the tool. show diagnostic information, to aid in tool development. π¬-nvcudaβ For diagnostic only, use the CUDA driver library rather than the CUDA run time. π§-cudartβ For diagnostic only, use the CUDA runtime rather than the CUDA driver library. π©-dirty-environmentβ Don't cleanse the environment of library-specific environment variables that affect GPU discovery (CUDA_VISIBLE_DEVICES,HIP_VISIBLE_DEVICES, etc.). it's giving "let me cook with my own env vars". π³
that's part 1 bestie, and there's more coming β don't go anywhere π
π GENERAL REMARKS π
okay bestie so by default this tool is gonna go hunting for GPU devices all on its own, and it checks the supported libraries in this exact order:
- NVidia driver library
- HIP 6 library
- OpenCL library
but if you tell it which ones you want via the command line, it'll only look for GPUs from the libraries you named (-cuda, -hip, and -opencl). no snooping around, strict vibes only β¨
NOTE: OpenCL devices don't have unique identifiers, which is a whole thing π. So if you use the-openclargument together with either-hipor-cuda, OpenCL devices will only be reported if they are the only type of device reported. like, they only get a mention if they're literally the main character and no one else shows up π
The list of detected GPU devices will only be contain devices present in library specific environment variables is set and the tool is called with -dirty-environment:
- NVidia:
CUDA_VISIBLE_DEVICESorGPU_DEVICE_ORDINAL - HIP:
HIP_VISIBLE_DEVICESorROCR_VISIBLE_DEVICES
π§ Multi-Instance GPU (MIG) π§
This tool will report each MIG instance as a distinct device if these conditions are all met:
- The NVML library is available.
- A MIG capable device is present.
- MIG is enabled.
- Compute instances have been created.
If the -short-uuid flag is not used then the MIG device name will be in the long UUID form. This is because the devices can not be enumerated via CUDA. no cap, that's just how it is π
Properties reported by the -properties, -extra, and -dynamic options that are not present in MIG instances will be omitted from the output. gone, vanished, not invited to the party π
If MIG is enabled on any GPU in the system, some properties become unavailable for every GPU in the system; condor_gpu_discovery will report what it can. it's doing its best fr fr π«Ά
π ClassAd Output π
This command will always produce the DetectedGPUs attribute. If no GPUs were detected, the value is 0. Otherwise, the value will be comma separated list of discovered GPU's. These names will be used as prefixes for other ClassAd attributes associated with the respective GPU device.
By default the GPU device name will be the short uuid (first 8 characters). This is highly likely to provide unique device names. In the event this is not true, using -uuid for the full unique UUID value will provided fully stable device identifiers.
Any NVIDIA runtime library later than 9.0 will accept the above identifiers in the CUDA_VISIBLE_DEVICES environment variable.
Example default DetectedGPUs
DetectedGPUs="GPU-ddc1c098, GPU-9dc7c6d6"
π Tables π
Table 1.1 Property Attributes (-properties)
- CUDA β
DeviceName,ECCEnabled,GlobalMemoryMb,DriverVersion,RuntimeVersion,Capability - OpenCL β
DeviceName,ECCEnabled,GlobalMemoryMb,OpenCLVersion - Rocm β
DeviceName,ECCEnabled,GlobalMemoryMb,AmdDriverVersion
Table 1.2 Extra Attributes (-extra)
- CUDA β
ClockMhz,ComputeUnits,CoresPerCU - OpenCL β
ClockMhz,ComputeUnits
Table 1.3 Dynamic Attributes (-dynamic)
BoardTempCDieTempCEccErrorSingleBitEccErrorDoubleBitFanSpeedPct
Table 2.1 Simulated GPUs
0β DeviceName:GeForce GT 330, Capability:1.2, GlobalMemoryMB:10241β DeviceName:GeForce GTX 480, Capability:2.0, GlobalMemoryMB:15362β DeviceName:Tesla V100-PCIE-16GB, Capability:7.0, GlobalMemoryMB:242203β DeviceName:TITAN RTX, Capability:7.5, GlobalMemoryMB:242204β DeviceName:A100-SXM4-40GB, Capability:8.0, GlobalMemoryMB:405365β DeviceName:NVIDIA A100-SXM4-40GB MIG 3g.20gb, Capability:8.0, GlobalMemoryMB:200966β DeviceName:NVIDIA A100-SXM4-40GB MIG 1g.5gb, Capability:8.0, GlobalMemoryMB:4864
π EXIT STATUS π
0β Success π1β Failure has occurred π
β¨ EXAMPLES β¨
Detect available GPUs
$ condor_gpu_discovery
Display properties about detected GPUs
$ condor_gpu_discovery -properties
Display dynamic attributes of detected GPUs
$ condor_gpu_discovery -dynamic
Display non-nested properties about detected GPUs
$ condor_gpu_discovery -not-nested -properties
Rename detected GPU attribute name with tag TestGPUs
$ condor_gpu_discovery -tag TestGPUs
Use custom name prefix for non-nested properties of detected GPUs
$ condor_gpu_discovery -extra -not-nested -prefix Discovered
Discover GPU devices using only the CUDA library
$ condor_gpu_discovery -cuda
Report each detected GPU device five times
$ condor_gpu_discovery -repeat 5
Report each detected GPU device five times while splitting the original memory equally between each repeated device
$ condor_gpu_discovery -divide 5
Use long UUID for all detected GPU devices.
$ condor_gpu_discovery -uuid
Simulate discovery of one GeForce GT 330, three GeForce GTX 480, and one TITAN RTX device
$ condor_gpu_discovery -simulate:0,1,1,3,3,1
πΈ SEE ALSO πΈ
None. yeah bestie, it's a lone wolf situation, no siblings, no friends, just vibes π¦
π AVAILABILITY π
Linux, Windows
π AUTHOR π
HTCondor Team
β COPYRIGHT β
1990-2026, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0.
and that's the whole page, we ate and left no crumbs ππ
this was CONDOR_GPU_DISCOVERY(1) straight from the source (that's the manpage source, source version date Oct 16, 2026, iykyk π) β go forth and discover some GPUs, bestie, you got this π«Άβ¨
π¦ where this page comes from
- fedora 43: condor 25.14.1-1.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms