зеркало из https://github.com/mozilla/pluotsorbet.git
Fix compilation of scimark2
This commit is contained in:
Родитель
5cbf1cd548
Коммит
85a02ce2a5
|
@ -1,4 +1,4 @@
|
|||
SRCS=$(shell find . -name "*.java") $(shell find ./scimark2src/jnt/scimark2 -name "*.java")
|
||||
SRCS=$(shell find . -name "*.java")
|
||||
|
||||
benchmark.jar: $(SRCS)
|
||||
rm -rf build
|
||||
|
|
|
@ -14,6 +14,7 @@ package jnt.scimark2;
|
|||
*/
|
||||
|
||||
public class FFT {
|
||||
final static int SEED = 113;
|
||||
|
||||
public static final double num_flops(int N)
|
||||
{
|
||||
|
@ -59,9 +60,10 @@ public class FFT {
|
|||
/** Make a random array of n (complex) elements. */
|
||||
public static double[] makeRandom(int n){
|
||||
int nd = 2*n;
|
||||
Random R = new Random(SEED);
|
||||
double data[] = new double[nd];
|
||||
for(int i=0; i<nd; i++)
|
||||
data[i]= Math.random();
|
||||
data[i]= R.nextDouble();
|
||||
return data; }
|
||||
|
||||
/** Simple Test routine. */
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package jnt.scimark2;
|
||||
|
||||
import java.util.Properties;
|
||||
|
||||
/**
|
||||
SciMark2: A Java numerical benchmark measuring performance
|
||||
of computational kernels for FFTs, Monte Carlo simulation,
|
||||
|
|
Загрузка…
Ссылка в новой задаче