SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
Dominoes:	Exploratory	Data	
Analysis	of	So5ware	Repositories	
Through	GPU	Processing
Jose	Ricardo	
Esteban	Clua	
Leonardo	Murta	
Anita	Sarma
Introduction
•  Identifying expertise is important:
•  Normally, expertise is identified through informal process:
•  Social network
•  Implicit knowledge of work dependencies
•  Even more challenging in globally distributed development
2
Introduction
•  Software development leaves behind the activity logs for
mining relationships
•  Commits in a version system
•  Tasks in a issue tracker
•  Communication
•  Finding them is not a trivial task
•  There is an extensive amount of data to be analyzed
•  Data is typically stored across different repositories
•  Scalability problems depending on the project size
•  Processing the history of large repositories at fine grain for
exploratory analysis at interactive rate
3
Related Work
•  EEL scope the analysis to 1,000 project elements
•  Restrict the history to small chunk of data
•  Cataldo analyze data at coarse-grain
•  Developer is expert of the whole artifact
•  Boa allows fine-grain analysis by using a CPU cluster
•  Normally require a time slice for using the cluster
•  Require data submission for processing
4
Solving the Problem
5
Implement used operations
for data analysis in GPU
User interface
+
Happy user / researcher
Performance Usability
Deeper Research
=
Solving the Problem
•  Efficient large-scale
repository analysis
•  Enable users to explore
relationships across different
levels of granularity
•  No requirement for a
specialized infrastructure
6
Dominoes
•  Infrastructure that enables interactive exploratory data
analysis at varying levels of granularity using GPU
•  Organizes data from software repositories into multiple
matrices
•  Each matrix is treated as Dominoes tile
•  Tiles can be combined through operations to generate derived tiles
•  Transposition, multiplication, addition, …
7
Dominoes UI
•  Dominoes’ tiles resemble a Dominoes game, where the
user can play with to build new relationships
8
Basic Building Tiles
9
[developer|commit] [package|file] [commit|file]
[class|method] [issue|commit]
[commit|method] [file|class]
Examples of Derived Building Tiles
•  [method|method] (MM = CMT × CM): represents method
dependencies
•  [class|class] (ClCl = ClM × MM × ClMT ): represents
class dependencies
•  [issue|method] (IM = IC × CM): represents the methods
that were changed to implement/fix an issue
10
Dominoes Architecture
11
•  Extractor module gather information
from repository and save to database
•  Basic block builder is responsible
to generate building blocks
relationship from database
•  Operations are performed in GPU
using a Java Native Interface call
•  Derived and basic building block still
in memory for future use
Dominoes
CUDA Kernels
Database
Data Mining
Linear
Transformations
Statistics
Extractor
2D Tile
3D Tile
Derived Tile
Serialize
10010011000 10010011000
Unserialize
Basic Tile
Builder
Memory
Client Analysis
Request
Data Structure
•  Matrix are very sparse for
some relationships
•  Developer x Commit
•  The java side maintain a
pointer to the sparse
matrix allocated in C side
•  The matrix are stored in CRS
format
•  Matrix operations
performed in C using a
JNI interface
12
Java
…
long pointer m1, m2, res;
createObj(res);
multiplication(m1, m2, res)
…
C / CUDA
void multiplication(JNIEnv *env, jclass obj,
jlong m1, jlong m2, res )
{
Matrix *_m1 = (Matrix*) m1;
Matrix *_m2 = (Matrix*) m2;
Matrix *_res = (Matrix*) m2;
GPUMul(m1, m2, _res);
}
Operations in GPU
13
Linear Transformation
Addition
Multiplication
Transposition
Data Mining
Confidence
Lift
Support
Statistics
Mean
Standard Deviation
Z-Score
Linear Transforms
•  Allows connecting pieces in the
Dominoes by changing its edge
•  Allows extracting further
relationships in the data by
combining the different types of data
•  Uses cusp library for performing
linear transforms
14
Reduction
•  Normally used for calculating the amount of relationship
•  Total of classes modified by a developer
•  How many bugs a developer have inserted in a method Y
•  Uses the Thrust library for calculating it in GPU
15
Confidence
•  Used to detect the relationship direction
•  Each GPU thread is responsible for processing the
confidence for each element
16
Mconf
[i, j]=
M SUP
[i, j]
M SUP
[i,i]
Class A Class B
Depends (98%)
Depends (0.8%)
Confidence
• Due to the fact that the row and column must be
know, they are computed and stored in a vector.
• Given a sparse M × M with t non zero values:
17
V1 V2 V3 … Vt R1 R2 R3 … Rt C1 C2 C3 … Ct D1 D2 … DM
For each t GPU thread
diagIdx = row[idx];
conf[idx] = value[idx] / diagonal[diagIdx]
Value Row Col Diagonal
Z-Score
• Responsible to convert an absolute value to a
score above the mean
• Require a set of steps
•  Calculating the mean / column
•  Calculating the standard deviation
•  Finally calculating the z-score
18
z =
(x −µ)
σ
x = absolute score
µ = mean
σ = standard deviation
Z-Score
•  Calculating the mean / column
•  Given a Matrix M × N, containing t non zero values, the
GPU is responsible to sum up all values for a column,
producing a vector sized N for the mean.
19
V1 V2 V3 … Vt C1 C2 C3 … Ct
Value Col
Kernel 1
For each t GPU thread
colIdx = col[idx]
atomicAdd(value[idx],
sum[idx])
atomicAdd(1, count[idx])
Kernel 2
For each N GPU thread
mean[idx] = sum[idx] / count[idx]
Z-Score
•  Calculating the standard deviation / column
•  Given a Matrix M × N, the GPU is responsible to sum up
all values for a column, producing a vector sized N for
the standard deviation
20
V1 V2 V3 … Vt C1 C2 C3 … Ct
Value Col
Kernel 1
For each t GPU thread
colIdx = col[idx]
colMean = mean[colIdx]
deviate = value[idx] – colMean
deviatePower2 = deviate * deviate
atomicAdd(deviatePower2, variance[colIdx])
Kernel 2
For each N GPU thread
colVariance = variance[idx]
colVarianceSqrt = sqrt(colVariance / M)
deviation[idx] = colVarianceSqrt
M1 M2 M3 … M
N
Mean
Z-Score
•  Calculating the standard score
•  Given a Matrix M × N with t non zero elements, the
GPU is responsible to produce the z-score
21
V1 V2 V3 … Vt C1 C2 C3 … Ct
Value Col
For each t GPU thread
colIdx = col[idx]
colMean = mean[colIdx]
standardDev = sd[colIdx]
z = (value[idx] – colMean) / standardDev
zscore[idx] = z
M1 M2 M3 … M
N
Mean
S1 S2 S3 … SN
SD
Applicability
22
Dependency Identification
Expertise Identification
Expertise breadth identification
Results
•  Evaluation time (support and confidence).
•  [file|commit] (34,335 x 7,578)
•  CPU: 696 minutes | GPU: 0.7 minutes | Speed up: 994
•  [method|commit] (305,551 x 7,578)
•  CPU: N/A | GPU: 5 minutes | Speed up: -
23
* Intel Core 2 Quad Q6600 2.40GHz PC with 4GB RAM and a nVidia GeForce GTX580 graphics card
was used.
Results
24
EBD when Considering Files
(seconds)
EBD when Considering
Methods (seconds)
Mean &
SD
Z-Score Total
Mean &
SD
Z-Score Total
CPU 2.19 301.23 303.42 424.71 1,573,60 1,998.31
GPU 0.10 19.49 19.59 8.55 203.46 212.01
Speed
Up
21.90 15.45 15.48 49.67 7.73 9.42
•  [Developer|File|Time]: 114 layers of 36 x 3400 (13,953,600 elements)
•  [Developer|Method|Time]: 114 layers of 36 x 43,788 (179,705,952 elements)
* EBD = Expertise Breadth of a Developer.
Results
•  J. R. da Silva, E. Clua, L. Murta, and A. Sarma. Niche vs. breadth:
Calculating expertise over time through a fine-grained analysis.
In Software Analysis, Evolution and Reengineering (SANER), 2015
IEEE 22nd International Conference on, pages 409–418, Mar. 2015
•  J. R. da Silva, E. Clua, L. Murta, and A. Sarma. Multi-Perspective
Exploratory Analysis of Software Development Data.
International Journal of Software Engineering and Knowledge
Engineering, 25(01):51–68, 2015.
•  J. R. da Silva Junior, E. Clua, L. Murta, and A. Sarma. Exploratory
Data Analysis of Software Repositories via GPU Processing.
26th SEKE, 2014
25
Conclusions
•  The main contribution is using GPU for solving Software
Engineering problems
•  Employment of GPU allows seamless relationship
manipulations at interactive rates
•  Uses matrices underneath to represents building blocks
•  Dominoes opens a new realm of exploratory software
analysis, as endless combinations of Dominoes’ pieces
can be experimented in an exploratory fashion
•  Thanks to the use of GPU, the user can do its analysis on
its own machine
26
Questions
27
jricardo@ic.uff.br
http://www.josericardojunior.com
https://br.linkedin.com/in/jose-ricardo-da-silva-junior-7299987
https://twitter.com/jricardojunior

Mais conteúdo relacionado

Semelhante a Dominoes: Exploratory Data Analysis of Software Repositories Through GPU Processing

Intro to GPGPU Programming with Cuda
Intro to GPGPU Programming with CudaIntro to GPGPU Programming with Cuda
Intro to GPGPU Programming with Cuda
Rob Gillen
 
Graphics processing uni computer archiecture
Graphics processing uni computer archiectureGraphics processing uni computer archiecture
Graphics processing uni computer archiecture
Haris456
 

Semelhante a Dominoes: Exploratory Data Analysis of Software Repositories Through GPU Processing (20)

Gpu with cuda architecture
Gpu with cuda architectureGpu with cuda architecture
Gpu with cuda architecture
 
Computer Architecture and Organization
Computer Architecture and OrganizationComputer Architecture and Organization
Computer Architecture and Organization
 
B tech Projects,Final Year Projects,Engineering Projects
B tech Projects,Final Year Projects,Engineering ProjectsB tech Projects,Final Year Projects,Engineering Projects
B tech Projects,Final Year Projects,Engineering Projects
 
Lecture 04
Lecture 04Lecture 04
Lecture 04
 
Introduction to GPUs for Machine Learning
Introduction to GPUs for Machine LearningIntroduction to GPUs for Machine Learning
Introduction to GPUs for Machine Learning
 
Intro to GPGPU Programming with Cuda
Intro to GPGPU Programming with CudaIntro to GPGPU Programming with Cuda
Intro to GPGPU Programming with Cuda
 
PCL (Point Cloud Library)
PCL (Point Cloud Library)PCL (Point Cloud Library)
PCL (Point Cloud Library)
 
Architectural Optimizations for High Performance and Energy Efficient Smith-W...
Architectural Optimizations for High Performance and Energy Efficient Smith-W...Architectural Optimizations for High Performance and Energy Efficient Smith-W...
Architectural Optimizations for High Performance and Energy Efficient Smith-W...
 
MAtrix Multiplication Parallel.ppsx
MAtrix Multiplication Parallel.ppsxMAtrix Multiplication Parallel.ppsx
MAtrix Multiplication Parallel.ppsx
 
matrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsxmatrixmultiplicationparallel.ppsx
matrixmultiplicationparallel.ppsx
 
Monte Carlo on GPUs
Monte Carlo on GPUsMonte Carlo on GPUs
Monte Carlo on GPUs
 
Pregel
PregelPregel
Pregel
 
An35225228
An35225228An35225228
An35225228
 
COA-Unit4-PPT.pptx
COA-Unit4-PPT.pptxCOA-Unit4-PPT.pptx
COA-Unit4-PPT.pptx
 
09 accelerators
09 accelerators09 accelerators
09 accelerators
 
Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15
Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15
Narayanan Sundaram, Research Scientist, Intel Labs at MLconf SF - 11/13/15
 
Introduction to parallel computing using CUDA
Introduction to parallel computing using CUDAIntroduction to parallel computing using CUDA
Introduction to parallel computing using CUDA
 
TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...
TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...
TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...
 
Graphics processing uni computer archiecture
Graphics processing uni computer archiectureGraphics processing uni computer archiecture
Graphics processing uni computer archiecture
 
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
Efficient Variable Size Template Matching Using Fast Normalized Cross Correla...
 

Último

Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
Areesha Ahmad
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
MohamedFarag457087
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
Areesha Ahmad
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
PirithiRaju
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Sérgio Sacani
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Sérgio Sacani
 

Último (20)

chemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdfchemical bonding Essentials of Physical Chemistry2.pdf
chemical bonding Essentials of Physical Chemistry2.pdf
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
Human & Veterinary Respiratory Physilogy_DR.E.Muralinath_Associate Professor....
 
Zoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdfZoology 5th semester notes( Sumit_yadav).pdf
Zoology 5th semester notes( Sumit_yadav).pdf
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Bacterial Identification and Classifications
Bacterial Identification and ClassificationsBacterial Identification and Classifications
Bacterial Identification and Classifications
 
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdfPests of cotton_Sucking_Pests_Dr.UPR.pdf
Pests of cotton_Sucking_Pests_Dr.UPR.pdf
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai YoungDubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
Dubai Call Girls Beauty Face Teen O525547819 Call Girls Dubai Young
 
GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)GBSN - Microbiology (Unit 2)
GBSN - Microbiology (Unit 2)
 
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
Locating and isolating a gene, FISH, GISH, Chromosome walking and jumping, te...
 
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune WaterworldsBiogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
Biogenic Sulfur Gases as Biosignatures on Temperate Sub-Neptune Waterworlds
 
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
High Profile 🔝 8250077686 📞 Call Girls Service in GTB Nagar🍑
 
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate ProfessorThyroid Physiology_Dr.E. Muralinath_ Associate Professor
Thyroid Physiology_Dr.E. Muralinath_ Associate Professor
 
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 bAsymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
Asymmetry in the atmosphere of the ultra-hot Jupiter WASP-76 b
 
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceuticsPulmonary drug delivery system M.pharm -2nd sem P'ceutics
Pulmonary drug delivery system M.pharm -2nd sem P'ceutics
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 

Dominoes: Exploratory Data Analysis of Software Repositories Through GPU Processing

  • 2. Introduction •  Identifying expertise is important: •  Normally, expertise is identified through informal process: •  Social network •  Implicit knowledge of work dependencies •  Even more challenging in globally distributed development 2
  • 3. Introduction •  Software development leaves behind the activity logs for mining relationships •  Commits in a version system •  Tasks in a issue tracker •  Communication •  Finding them is not a trivial task •  There is an extensive amount of data to be analyzed •  Data is typically stored across different repositories •  Scalability problems depending on the project size •  Processing the history of large repositories at fine grain for exploratory analysis at interactive rate 3
  • 4. Related Work •  EEL scope the analysis to 1,000 project elements •  Restrict the history to small chunk of data •  Cataldo analyze data at coarse-grain •  Developer is expert of the whole artifact •  Boa allows fine-grain analysis by using a CPU cluster •  Normally require a time slice for using the cluster •  Require data submission for processing 4
  • 5. Solving the Problem 5 Implement used operations for data analysis in GPU User interface + Happy user / researcher Performance Usability Deeper Research =
  • 6. Solving the Problem •  Efficient large-scale repository analysis •  Enable users to explore relationships across different levels of granularity •  No requirement for a specialized infrastructure 6
  • 7. Dominoes •  Infrastructure that enables interactive exploratory data analysis at varying levels of granularity using GPU •  Organizes data from software repositories into multiple matrices •  Each matrix is treated as Dominoes tile •  Tiles can be combined through operations to generate derived tiles •  Transposition, multiplication, addition, … 7
  • 8. Dominoes UI •  Dominoes’ tiles resemble a Dominoes game, where the user can play with to build new relationships 8
  • 9. Basic Building Tiles 9 [developer|commit] [package|file] [commit|file] [class|method] [issue|commit] [commit|method] [file|class]
  • 10. Examples of Derived Building Tiles •  [method|method] (MM = CMT × CM): represents method dependencies •  [class|class] (ClCl = ClM × MM × ClMT ): represents class dependencies •  [issue|method] (IM = IC × CM): represents the methods that were changed to implement/fix an issue 10
  • 11. Dominoes Architecture 11 •  Extractor module gather information from repository and save to database •  Basic block builder is responsible to generate building blocks relationship from database •  Operations are performed in GPU using a Java Native Interface call •  Derived and basic building block still in memory for future use Dominoes CUDA Kernels Database Data Mining Linear Transformations Statistics Extractor 2D Tile 3D Tile Derived Tile Serialize 10010011000 10010011000 Unserialize Basic Tile Builder Memory Client Analysis Request
  • 12. Data Structure •  Matrix are very sparse for some relationships •  Developer x Commit •  The java side maintain a pointer to the sparse matrix allocated in C side •  The matrix are stored in CRS format •  Matrix operations performed in C using a JNI interface 12 Java … long pointer m1, m2, res; createObj(res); multiplication(m1, m2, res) … C / CUDA void multiplication(JNIEnv *env, jclass obj, jlong m1, jlong m2, res ) { Matrix *_m1 = (Matrix*) m1; Matrix *_m2 = (Matrix*) m2; Matrix *_res = (Matrix*) m2; GPUMul(m1, m2, _res); }
  • 13. Operations in GPU 13 Linear Transformation Addition Multiplication Transposition Data Mining Confidence Lift Support Statistics Mean Standard Deviation Z-Score
  • 14. Linear Transforms •  Allows connecting pieces in the Dominoes by changing its edge •  Allows extracting further relationships in the data by combining the different types of data •  Uses cusp library for performing linear transforms 14
  • 15. Reduction •  Normally used for calculating the amount of relationship •  Total of classes modified by a developer •  How many bugs a developer have inserted in a method Y •  Uses the Thrust library for calculating it in GPU 15
  • 16. Confidence •  Used to detect the relationship direction •  Each GPU thread is responsible for processing the confidence for each element 16 Mconf [i, j]= M SUP [i, j] M SUP [i,i] Class A Class B Depends (98%) Depends (0.8%)
  • 17. Confidence • Due to the fact that the row and column must be know, they are computed and stored in a vector. • Given a sparse M × M with t non zero values: 17 V1 V2 V3 … Vt R1 R2 R3 … Rt C1 C2 C3 … Ct D1 D2 … DM For each t GPU thread diagIdx = row[idx]; conf[idx] = value[idx] / diagonal[diagIdx] Value Row Col Diagonal
  • 18. Z-Score • Responsible to convert an absolute value to a score above the mean • Require a set of steps •  Calculating the mean / column •  Calculating the standard deviation •  Finally calculating the z-score 18 z = (x −µ) σ x = absolute score µ = mean σ = standard deviation
  • 19. Z-Score •  Calculating the mean / column •  Given a Matrix M × N, containing t non zero values, the GPU is responsible to sum up all values for a column, producing a vector sized N for the mean. 19 V1 V2 V3 … Vt C1 C2 C3 … Ct Value Col Kernel 1 For each t GPU thread colIdx = col[idx] atomicAdd(value[idx], sum[idx]) atomicAdd(1, count[idx]) Kernel 2 For each N GPU thread mean[idx] = sum[idx] / count[idx]
  • 20. Z-Score •  Calculating the standard deviation / column •  Given a Matrix M × N, the GPU is responsible to sum up all values for a column, producing a vector sized N for the standard deviation 20 V1 V2 V3 … Vt C1 C2 C3 … Ct Value Col Kernel 1 For each t GPU thread colIdx = col[idx] colMean = mean[colIdx] deviate = value[idx] – colMean deviatePower2 = deviate * deviate atomicAdd(deviatePower2, variance[colIdx]) Kernel 2 For each N GPU thread colVariance = variance[idx] colVarianceSqrt = sqrt(colVariance / M) deviation[idx] = colVarianceSqrt M1 M2 M3 … M N Mean
  • 21. Z-Score •  Calculating the standard score •  Given a Matrix M × N with t non zero elements, the GPU is responsible to produce the z-score 21 V1 V2 V3 … Vt C1 C2 C3 … Ct Value Col For each t GPU thread colIdx = col[idx] colMean = mean[colIdx] standardDev = sd[colIdx] z = (value[idx] – colMean) / standardDev zscore[idx] = z M1 M2 M3 … M N Mean S1 S2 S3 … SN SD
  • 23. Results •  Evaluation time (support and confidence). •  [file|commit] (34,335 x 7,578) •  CPU: 696 minutes | GPU: 0.7 minutes | Speed up: 994 •  [method|commit] (305,551 x 7,578) •  CPU: N/A | GPU: 5 minutes | Speed up: - 23 * Intel Core 2 Quad Q6600 2.40GHz PC with 4GB RAM and a nVidia GeForce GTX580 graphics card was used.
  • 24. Results 24 EBD when Considering Files (seconds) EBD when Considering Methods (seconds) Mean & SD Z-Score Total Mean & SD Z-Score Total CPU 2.19 301.23 303.42 424.71 1,573,60 1,998.31 GPU 0.10 19.49 19.59 8.55 203.46 212.01 Speed Up 21.90 15.45 15.48 49.67 7.73 9.42 •  [Developer|File|Time]: 114 layers of 36 x 3400 (13,953,600 elements) •  [Developer|Method|Time]: 114 layers of 36 x 43,788 (179,705,952 elements) * EBD = Expertise Breadth of a Developer.
  • 25. Results •  J. R. da Silva, E. Clua, L. Murta, and A. Sarma. Niche vs. breadth: Calculating expertise over time through a fine-grained analysis. In Software Analysis, Evolution and Reengineering (SANER), 2015 IEEE 22nd International Conference on, pages 409–418, Mar. 2015 •  J. R. da Silva, E. Clua, L. Murta, and A. Sarma. Multi-Perspective Exploratory Analysis of Software Development Data. International Journal of Software Engineering and Knowledge Engineering, 25(01):51–68, 2015. •  J. R. da Silva Junior, E. Clua, L. Murta, and A. Sarma. Exploratory Data Analysis of Software Repositories via GPU Processing. 26th SEKE, 2014 25
  • 26. Conclusions •  The main contribution is using GPU for solving Software Engineering problems •  Employment of GPU allows seamless relationship manipulations at interactive rates •  Uses matrices underneath to represents building blocks •  Dominoes opens a new realm of exploratory software analysis, as endless combinations of Dominoes’ pieces can be experimented in an exploratory fashion •  Thanks to the use of GPU, the user can do its analysis on its own machine 26