Commit 34988d9b authored by demianzhang's avatar demianzhang Committed by chicm-ms
Browse files

Update gpuScheduler.ts (#1043)

parent 9974c602
...@@ -73,8 +73,13 @@ class GPUScheduler { ...@@ -73,8 +73,13 @@ class GPUScheduler {
public getAvailableGPUIndices(): number[] { public getAvailableGPUIndices(): number[] {
if (this.gpuSummary !== undefined) { if (this.gpuSummary !== undefined) {
return this.gpuSummary.gpuInfos.filter((info: GPUInfo) => info.activeProcessNum === 0) if(process.platform === 'win32') {
.map((info: GPUInfo) => info.index); return this.gpuSummary.gpuInfos.map((info: GPUInfo) => info.index);
}
else{
return this.gpuSummary.gpuInfos.filter((info: GPUInfo) => info.activeProcessNum === 0)
.map((info: GPUInfo) => info.index);
}
} }
return []; return [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment