Wed 28 Aug 21:38:52 CEST 2024
This commit is contained in:
		
							parent
							
								
									8dbf1e2086
								
							
						
					
					
						commit
						8f255b0b9b
					
				
							
								
								
									
										18
									
								
								src/SimNDT/gui/checkOpenCL.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								src/SimNDT/gui/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