你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Moved warnings removal for pyopencl
这个提交包含在:
@@ -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']
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户