[fix] Marked field regarding physical device to be excluded for virtual devices
@@ -30,6 +30,7 @@ import uk.ac.manchester.tornado.api.enums.TornadoVMBackendType;
import uk.ac.manchester.tornado.drivers.common.ColoursTerminal;
import uk.ac.manchester.tornado.runtime.TornadoAcceleratorDriver;
import uk.ac.manchester.tornado.runtime.TornadoCoreRuntime;
+import uk.ac.manchester.tornado.runtime.common.TornadoOptions;
/**
* Program to query all devices reachable from TornadoVM.
@@ -87,7 +88,9 @@ public class TornadoDeviceQuery {
deviceInfoBuffer.append("\t\t" + "Global Memory Size: " + formatSize(driver.getDevice(deviceIndex).getMaxGlobalMemory()) + "\n");
deviceInfoBuffer.append("\t\t" + "Local Memory Size: " + formatSize(driver.getDevice(deviceIndex).getDeviceLocalMemorySize()) + "\n");
deviceInfoBuffer.append("\t\t" + "Workgroup Dimensions: " + driver.getDevice(deviceIndex).getDeviceMaxWorkgroupDimensions().length + "\n");
+ if (!TornadoOptions.VIRTUAL_DEVICE_ENABLED) {
deviceInfoBuffer.append("\t\t" + "Total Number of Block Threads: " + driver.getDevice(deviceIndex).getPhysicalDevice().getDeviceMaxWorkGroupSize()[0] + "\n");
+ }
deviceInfoBuffer.append("\t\t" + "Max WorkGroup Configuration: " + Arrays.toString(driver.getDevice(deviceIndex).getDeviceMaxWorkgroupDimensions()) + "\n");
deviceInfoBuffer.append("\t\t" + "Device OpenCL C version: " + driver.getDevice(deviceIndex).getDeviceOpenCLCVersion() + "\n");
}
