public static void CommitBenchmarksForDevice(ComputeDevice device) { // since we have multitrheaded benchmarks lock (BenchmarkConfigFiles) lock (device) { var devUuid = device.Uuid; if (!BenchmarkConfigFiles.ContainsKey(devUuid)) { BenchmarkConfigFiles[devUuid] = new DeviceBenchmarkConfigFile(devUuid); } var configs = device.GetAlgorithmDeviceConfig(); BenchmarkConfigFiles[devUuid].Commit(configs); } }