Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 66cf3ff

Browse filesBrowse files
committed
first test on cloud
1 parent b688a56 commit 66cf3ff
Copy full SHA for 66cf3ff

File tree

Expand file treeCollapse file tree

3 files changed

+17
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+17
-2
lines changed
Open diff view settings
Collapse file

‎src/lambdacloud/core/CloudConfig.java‎

Copy file name to clipboardExpand all lines: src/lambdacloud/core/CloudConfig.java
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public static String printTargetInfo() {
3636
}
3737

3838
public static String getHost() {
39-
return "127.0.0.1";
39+
//return "localhost";
40+
return "ec2-54-200-107-134.us-west-2.compute.amazonaws.com";
4041
}
4142

4243
public static int getPort() {
Collapse file

‎src/symjava/examples/Solver.java‎

Copy file name to clipboardExpand all lines: src/symjava/examples/Solver.java
+14Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,19 @@ public static void main(String[] args) {
7070
for(double i : x)
7171
System.out.println(i);
7272
//x=(0.3,0.4,0)
73+
74+
int N = Integer.valueOf(args[0]);
75+
long begin = System.currentTimeMillis();
76+
double[][] AA = new double[N][N];
77+
double[] xx = new double[N];
78+
double[] bb = new double[N];
79+
for(int i=0;i<N;i++)
80+
for(int j=0;j<N;j++)
81+
AA[i][j] = Math.random();
82+
for(int i=0;i<N;i++)
83+
bb[i] = Math.random();
84+
solveCG2(AA, bb, xx);
85+
long end = System.currentTimeMillis();
86+
System.out.println("Time for solving "+N+"*"+N+" system:" + (end-begin) + "ms");
7387
}
7488
}
Collapse file

‎src/symjava/symbolic/utils/JIT.java‎

Copy file name to clipboardExpand all lines: src/symjava/symbolic/utils/JIT.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public static BytecodeBatchFunc compileBatchFunc(Expr[] args, Expr expr) {
100100
public static IR getIR(String name, Expr[] args, Expr expr) {
101101
String className = name;
102102
Func func = new Func(className, expr, args);
103-
ClassGen genClass = BytecodeUtils.genClassBytecodeFunc(func, true, false);
103+
ClassGen genClass = BytecodeUtils.genClassBytecodeFunc(func, false, false);
104104
IR ir = new IR();
105105
ir.type = 1;
106106
ir.name = genClass.getJavaClass().getClassName();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.