]> AND Private Git Repository - kahina_paper2.git/blobdiff - code.c
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[kahina_paper2.git] / code.c
diff --git a/code.c b/code.c
index d681fa0a63a4adbf805f4cc39b48121992074f84..cb93014218bc5df9f0417c751df6096835bfa898 100644 (file)
--- a/code.c
+++ b/code.c
@@ -1,8 +1,5 @@
-
-
-
-
 //Normal version of the Ehrlich-Aberth method
+__device__
 cuDoubleComplex FirstH_EA(int i, cuDoubleComplex *Z) {
   
   cuDoubleComplex  result;
@@ -37,6 +34,7 @@ cuDoubleComplex FirstH_EA(int i, cuDoubleComplex *Z) {
 
 
 //Log Exp version of the Ehrlich-Aberth method
+__device__
 cuDoubleComplex NewH_EA(int i, cuDoubleComplex *Z) {
 
   cuDoubleComplex result;
@@ -78,6 +76,7 @@ cuDoubleComplex NewH_EA(int i, cuDoubleComplex *Z) {
 
 
 //kernels to update a root i
+__global__
 cuDoubleComplex H_EA(int i, cuDoubleComplex *Z) {
   cuDoubleComplex c;
   //if the root needs to be updated