Selaa lähdekoodia

Drop spurious changes (again...)

Samuel Thibault 11 vuotta sitten
vanhempi
commit
02ce5c2683

+ 1 - 2
examples/axpy/axpy.c

@@ -36,7 +36,7 @@
 
 #define N	(16*1024*1024)
 
-#define NBLOCKS	(8)
+#define NBLOCKS	8
 
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
@@ -70,7 +70,6 @@ void axpy_gpu(void *descr[], STARPU_ATTRIBUTE_UNUSED void *arg)
 	TYPE *block_x = (TYPE *)STARPU_VECTOR_GET_PTR(descr[0]);
 	TYPE *block_y = (TYPE *)STARPU_VECTOR_GET_PTR(descr[1]);
 
-	cublasSetKernelStream(starpu_cuda_get_local_stream());
 	CUBLASAXPY((int)n, alpha, block_x, 1, block_y, 1);
 }
 #endif

+ 1 - 1
examples/incrementer/incrementer.c

@@ -18,7 +18,7 @@
 #include <starpu.h>
 #include <sys/time.h>
 
-static unsigned niter = 50;
+static unsigned niter = 50000;
 #define FPRINTF(ofile, fmt, ...) do { if (!getenv("STARPU_SSILENT")) {fprintf(ofile, fmt, ## __VA_ARGS__); }} while(0)
 
 #ifdef STARPU_USE_CUDA

+ 0 - 3
examples/incrementer/incrementer_kernels.cu

@@ -19,11 +19,8 @@
 
 static __global__ void cuda_incrementer(float * tab)
 {
-	int i;
 	tab[0] = tab[0] + 1.0f;
 	tab[2] = tab[2] + 1.0f;
-	for (i = 0; i < 1000000; i++)
-		__syncthreads();
 
 	return;
 }