英特尔Windows系统的哪个CPU可以为这个示例Python代码提供最佳性能?
import numpy as np
X = np.random.randn( 1e7, 10 )
Y = np.random.randn( 1e7, 1 )
%timeit I = X>Y
np.show_config()
示例代码不使用多个内核,因此我不确定是否需要购买昂贵的多核i7。
对于时钟速度更快的i5,我能有所改善吗?
此外,cpu缓存将如何影响这些?
注意:编辑原始问题以提供具体示例。
添加Unutbu的建议,我的输出是
1 loops, best of 3: 255 ms per loop
mkl_info:
define_macros = [('SCIPY_MKL_H', None)]
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd']
library_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64']
include_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/include']
blas_opt_info:
define_macros = [('SCIPY_MKL_H', None)]
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd']
library_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64']
include_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/include']
lapack_opt_info:
define_macros = [('SCIPY_MKL_H', None)]
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd', 'mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd']
library_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64']
include_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/include']
lapack_mkl_info:
define_macros = [('SCIPY_MKL_H', None)]
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd', 'mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd']
library_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64']
include_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/include']
blas_mkl_info:
define_macros = [('SCIPY_MKL_H', None)]
libraries = ['mkl_lapack95_lp64', 'mkl_blas95_lp64', 'mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'libiomp5md', 'libifportmd']
library_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/lib/intel64']
include_dirs = ['C:/Program Files (x86)/Intel/Composer XE/mkl/include']
openblas_lapack_info:
NOT AVAILABLE
我的CPU是一款古老的i7 920 2.67GHz,配备24.0GB Ram,Windows Vista Business 64位