level 3
相对论属于近似
楼主
找来找去都只有这一个线性矩阵运算的例子,
不知道变通一下是否可行,求高手指点
Examples
————————————————————————————

n := 4000:
M1 := LinearAlgebra:-RandomMatrix(n, n, datatype = float[4]):
M2 := LinearAlgebra:-RandomMatrix(n, n, datatype = float[4]):
CUDA:-IsEnabled();
false
tNoCUDA := time[real](M1.M2);
tNoCUDA := 13.823
CUDA:-Enable( true );
false
CUDA:-IsEnabled();
true
tCUDA := time[real](M1.M2);
tCUDA := 1.163
evalf( tNoCUDA/tCUDA );
11.88564058
CUDA:-Enable( false );
true
CUDA:-IsEnabled();
false
2012年08月30日 11点08分
1
不知道变通一下是否可行,求高手指点
Examples
————————————————————————————
n := 4000:M1 := LinearAlgebra:-RandomMatrix(n, n, datatype = float[4]):
M2 := LinearAlgebra:-RandomMatrix(n, n, datatype = float[4]):
CUDA:-IsEnabled();
false
tNoCUDA := time[real](M1.M2);
tNoCUDA := 13.823
CUDA:-Enable( true );
false
CUDA:-IsEnabled();
true
tCUDA := time[real](M1.M2);
tCUDA := 1.163
evalf( tNoCUDA/tCUDA );
11.88564058
CUDA:-Enable( false );
true
CUDA:-IsEnabled();
false