mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
OpenCL support: fix bug, adding new requirements files
This commit is contained in:
parent
72ba6b103c
commit
b939fe9d85
4 changed files with 18 additions and 6 deletions
|
@ -270,6 +270,8 @@ try:
|
|||
ctx = plaidml.Context()
|
||||
for d in plaidml.devices(ctx, return_all=True)[0]:
|
||||
details = json.loads(d.details)
|
||||
if details['type'] == 'CPU': #skipping opencl-CPU
|
||||
continue
|
||||
if 'nvidia' in details['vendor'].lower():
|
||||
has_nvidia_device = True
|
||||
plaidML_devices += [ {'id':d.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue