[Ecm-commits] r2393 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Tue Feb 12 15:59:34 CET 2013


Author: bouvierc
Date: 2013-02-12 15:59:34 +0100 (Tue, 12 Feb 2013)
New Revision: 2393

Log:
Small changes to adapt GPU code for latest changes in stage2


Modified:
   trunk/cudawrapper.c
Modified: trunk/cudawrapper.c
===================================================================
--- trunk/cudawrapper.c	2013-02-12 10:59:48 UTC (rev 2392)
+++ trunk/cudawrapper.c	2013-02-12 14:59:34 UTC (rev 2393)
@@ -526,6 +526,8 @@
   set_verbose (0);
   st2 = cputime ();
   
+  P.disc = 0; /* For stage2 this needs to be 0, in order not to use CM stuff */
+
   for (i = 0; i < *nb_curves; i++)
     {
       if (test_verbose (OUTPUT_RESVERBOSE)) 
@@ -561,8 +563,8 @@
           mpz_clear (t);
         }
   
-        youpi = stage2 (factors[i], &P, modulus, dF, k, &root_params, ECM_ECM, 
-                      use_ntt, TreeFilename, stop_asap);
+        youpi = stage2 (factors[i], &P, modulus, dF, k, &root_params, use_ntt, 
+                        TreeFilename, stop_asap, B2);
 
         if (youpi != ECM_NO_FACTOR_FOUND)
             goto end_gpu_ecm_rhotable;




More information about the Ecm-commits mailing list