Fri 29 Nov 2024 04:30:50 PM CET
This commit is contained in:
parent
57a8634a67
commit
3df34e3ff0
18
src/SimNDT/run_setup/checkOpenCL.py
Normal file
18
src/SimNDT/run_setup/checkOpenCL.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
__author__ = 'Miguel Molero'
|
||||
|
||||
from PySide.QtGui import *
|
||||
|
||||
global ErrorImportCL
|
||||
try:
|
||||
import pyopencl as cl
|
||||
|
||||
ErrorImportCL = False
|
||||
except ImportError:
|
||||
ErrorImportCL = True
|
||||
|
||||
|
||||
def isOpenCL(openclIcon, openclLabel):
|
||||
global ErrorImportCL
|
||||
if not ErrorImportCL:
|
||||
openclIcon.setToolTip(("OpenCL actived"))
|
||||
openclLabel.setPixmap(QPixmap(":/circle_green.png").scaled(10, 10))
|
Loading…
Reference in New Issue
Block a user