Moved warnings removal for pyopencl

这个提交包含在:
craig-warren
2024-01-04 14:35:37 +00:00
父节点 3a69672968
当前提交 0026d22547

查看文件

@@ -21,9 +21,6 @@ import sys
import warnings
from pathlib import Path
# Used to suppress CompilerWarning (sub-class of UserWarning) from pyopencl
warnings.filterwarnings("ignore", category=UserWarning)
import cython
import numpy as np
from colorama import Fore, Style, init
@@ -256,6 +253,9 @@ class SimulationConfig:
self.general["precision"] = "single"
self.devices = {"devs": [], "compiler_opts": None} # pyopencl device device(s); compiler options
# Suppress CompilerWarning (sub-class of UserWarning)
warnings.filterwarnings("ignore", category=UserWarning)
# Suppress unused variable warnings on gcc
# if sys.platform != 'win32': self.devices['compiler_opts'] = ['-w']