-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from DemoGo/parallelmap
For parallel map implementation CUDA and openMP
- Loading branch information
Showing
112 changed files
with
10,647 additions
and
2,636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lrparser.y : LINE 574 uncomment the line to activate the -o (optimize) option | ||
|
||
For fixing the segmentation fault in PageRank_DSL_V2 :- | ||
SymbolTableBuilder.cpp : LINE 375 added a check to see if the forall statement is a for loop or a forall loop | ||
deviceVarsAnalyser.h : getTempVar() LINE 284 removed static cast and used strcpy since it previously generated random characters | ||
|
||
added fp_idnode to identifier | ||
analyser/deviceVars/getUsedVars.cpp: LINE 230 fixed fp for sssp | ||
src/symbolutil/SymbolTableBuilder.cpp: LINE 278 added fp node | ||
|
||
formal parameters generation: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include<stdio.h> | ||
#include<Symbol.h> | ||
|
||
using namespace std; | ||
|
||
class TACode | ||
{ | ||
string opCode; | ||
string target; | ||
Symbol* destination; | ||
Symbol* operand1; | ||
Symbol* operand2; | ||
|
||
|
||
TACode() | ||
{ | ||
operand1=NULL; | ||
operand2=NULL; | ||
destination=NULL; | ||
} | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
""" | ||
How to run : python name_of_python_script <filename1> <filename2> | ||
Output : Count of non-matching rows in both files | ||
""" | ||
|
||
|
||
import sys | ||
|
||
#first file name | ||
file = sys.argv[1] | ||
#second file name | ||
file1 = sys.argv[2] | ||
f=open(file,"r") | ||
f1=open(file1,"r") | ||
lines=f.readlines() | ||
lines1=f1.readlines() | ||
#print(lines); | ||
result=[] | ||
result1=[] | ||
for x in lines: | ||
result.append(x.split(" ")[1]) | ||
|
||
f.close() | ||
|
||
#print(result) | ||
|
||
for x in lines1: | ||
result1.append(x.split(" ")[1]) | ||
|
||
f1.close() | ||
#print(result1) | ||
|
||
new = [] | ||
for sub in result: | ||
new.append(sub.replace("\n", "")) | ||
#print(new) | ||
|
||
|
||
new1 = [] | ||
for sub in result1: | ||
new1.append(sub.replace("\n", "")) | ||
#print(new1) | ||
count=0; | ||
|
||
for i in range(len(result)): | ||
if abs(round(float(result[i]),3) - round(float((result1[i])),3)) > 0.000001: | ||
count = count+1 | ||
|
||
print(count) | ||
|
Oops, something went wrong.