 
     return ret;
 }
-
+#endif

        {
            CURAND_CALL_GOTO(curandGenerateUniformDouble(gen,
                        (double *)(valptr),
                        vec->traits.ncolspadded*vec->traits.nrows*2),err,ret);
        } 
        else 
        {
            CURAND_CALL_GOTO(curandGenerateUniform(gen,
                        (float *)(valptr),
                        vec->traits.ncolspadded*vec->traits.nrows*2),err,ret);
        }
    }
    else
    {
        if (vec->traits.datatype & GHOST_DT_DOUBLE)
        {
            int r;
                for (r=0; r<vec->traits.nrowsorig; r++) {
                    if (ghost_bitmap_isset(vec->trmask,r)) {
            CURAND_CALL_GOTO(curandGenerateUniformDouble(gen,
                        (double *)(valptr)+r*vec->traits.ncolspadded,
                        /*vec->traits.ncolspadded**/vec->traits.ncols),err,ret);
                    }
                }
        } 
        else 
        {
            CURAND_CALL_GOTO(curandGenerateUniform(gen,
                        (float *)(valptr),
                        vec->traits.ncolspadded*vec->traits.nrows),err,ret);
        }
    }
    if (vec->traits.datatype & GHOST_DT_DOUBLE) {
        vec->axpby(vec,onevecview,minusahalf,one);
    } else {
        vec->axpby(vec,onevecview,fminusahalf,fone);
    }
    goto out;
err:

#include <curand.h>
#include <sys/types.h>
#include <unistd.h>
#include <complex.h>

#include "ghost/cu_complex.h"

