refine core warning message (#18063)

test=develop
revert-18229-add_multi_gpu_install_check
tensor-tang 6 years ago committed by GitHub
parent 4c735f24ea
commit 8cf25c4310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,10 +57,9 @@ if cpuinfo.supports_avx:
from .core_avx import _set_eager_deletion_mode
from .core_avx import _set_fuse_parameter_group_size
from .core_avx import _set_fuse_parameter_memory_size
except ImportError as error:
except ImportError:
sys.stderr.write(
error.__class__.__name__ +
' WARNING: Error importing avx core. You may not build with AVX, '
'WARNING: Can not import avx core. You may not build with AVX, '
'but AVX is supported on local machine, you could build paddle '
'WITH_AVX=ON to get better performance. ')
load_noavx = True

Loading…
Cancel
Save