This repository was archived by the owner on Apr 24, 2022. It is now read-only.
File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -172,18 +172,19 @@ void CUDAMiner::listDevices()
172
172
{
173
173
try
174
174
{
175
- string outString = " \n Listing CUDA devices.\n FORMAT: [deviceID] deviceName\n " ;
175
+ cout << " \n Listing CUDA devices.\n FORMAT: [deviceID] deviceName\n " ;
176
176
int numDevices = getNumDevices ();
177
177
for (int i = 0 ; i < numDevices; ++i)
178
178
{
179
179
cudaDeviceProp props;
180
180
CUDA_SAFE_CALL (cudaGetDeviceProperties (&props, i));
181
181
182
- outString += " [" + to_string (i) + " ] " + string (props.name ) + " \n " ;
183
- outString += " \t Compute version: " + to_string (props.major ) + " ." + to_string (props.minor ) + " \n " ;
184
- outString += " \t cudaDeviceProp::totalGlobalMem: " + to_string (props.totalGlobalMem ) + " \n " ;
182
+ cout << " [" + to_string (i) + " ] " + string (props.name ) + " \n " ;
183
+ cout << " \t Compute version: " + to_string (props.major ) + " ." + to_string (props.minor ) + " \n " ;
184
+ cout << " \t cudaDeviceProp::totalGlobalMem: " + to_string (props.totalGlobalMem ) + " \n " ;
185
+ cout << " \t Pci: " << setw (4 ) << setfill (' 0' ) << hex << props.pciDomainID << ' :' << setw (2 )
186
+ << props.pciBusID << ' :' << setw (2 ) << props.pciDeviceID << ' \n ' ;
185
187
}
186
- std::cout << outString;
187
188
}
188
189
catch (std::runtime_error const & err)
189
190
{
You can’t perform that action at this time.
0 commit comments