From c9d27fd6b9393c9e3df08f6aef5e43b13fff4da4 Mon Sep 17 00:00:00 2001
From: Moises Fernandez <moisesf@fmrib.ox.ac.uk>
Date: Thu, 11 Apr 2013 14:16:22 +0000
Subject: [PATCH] Deleted splitter_gpu.cc splitter_multigpu.cc because now the
 division of slices and voxels is make inside scripts and xfibres_gpu.cc

---
 splitter_gpu.cc      | 64 ----------------------------------------
 splitter_multigpu.cc | 70 --------------------------------------------
 2 files changed, 134 deletions(-)
 delete mode 100644 splitter_gpu.cc
 delete mode 100755 splitter_multigpu.cc

diff --git a/splitter_gpu.cc b/splitter_gpu.cc
deleted file mode 100644
index 99d9928..0000000
--- a/splitter_gpu.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-/*  splitter_gpu.cc
-
-    Tim Behrens, Saad Jbabdi, Stam Sotiropoulos, Moises Hernandez  - FMRIB Image Analysis Group
-
-    Copyright (C) 2005 University of Oxford  */
-
-/*  CCOPYRIGHT  */
-
-#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <string>
-#include <time.h>
-#include <sys/time.h>
-#include "CUDA/xfibres_gpu.h"
-#include "CUDA/init_gpu.h"
-
-using namespace std;
-
-int main(int argc, char *argv[]){
-
-	char *subjdir=argv[1];
-	int gflag=atoi(argv[2]);
-	int nfibres=atoi(argv[3]);
-	int nslices=atoi(argv[4]);
-
-	int nextras=argc-5;
-	if(gflag==1) nextras++;
-
-	char **extras = new char*[nextras];
-
-	for(int i=5;i<(argc);i++){ //copy all arguments to extras
-		extras[i-5] = (char*)malloc(strlen(argv[i])*sizeof(char));
-		strcpy(extras[i-5],argv[i]);
-	}
-
-	init_gpu();
-
-	char slice_str[8];
-	char aux[8];
-
-	for(int slice=0;slice<nslices;slice++){
-		sprintf(slice_str,"%d",slice);
-		while(strlen(slice_str)<4){
-			strcpy(aux,"0");
-			strcat(aux,slice_str);
-			strcpy(slice_str,aux);
-		}
-
-		if(gflag==1){
-		    extras[nextras-1] = (char*)malloc((35+strlen(subjdir))*sizeof(char));	
-		    strcpy(extras[nextras-1],"--gradnonlin=");
-		    strcat(extras[nextras-1],subjdir);
-		    strcat(extras[nextras-1],"/grad_dev_slice_");	
-		    strcat(extras[nextras-1],slice_str);
-		}
-
-		xfibres_gpu(subjdir,slice,nextras,extras);
-
-		printf("SLICE %i processed\n",slice);
-	}
-	return 0;
-}
diff --git a/splitter_multigpu.cc b/splitter_multigpu.cc
deleted file mode 100755
index a639459..0000000
--- a/splitter_multigpu.cc
+++ /dev/null
@@ -1,70 +0,0 @@
-/*  splitter_multigpu.cc
-
-    Tim Behrens, Saad Jbabdi, Stam Sotiropoulos, Moises Hernandez  - FMRIB Image Analysis Group
-
-    Copyright (C) 2005 University of Oxford  */
-
-/*  CCOPYRIGHT  */
-
-#include <iostream>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <string>
-#include <time.h>
-#include <sys/time.h>
-#include "CUDA/xfibres_gpu.h"
-#include "CUDA/init_gpu.h"
-
-using namespace std;
-
-int main(int argc, char *argv[]){
-
-
-	char *subjdir=argv[1];
-	int gflag=atoi(argv[2]);
-	int nfibres=atoi(argv[3]);
-	int slice=atoi(argv[4]);
-
-	printf("\n-------------------------------\n");
-	printf("SLICE %i\n",slice);
-
-	int nextras=argc-5;
-	if(gflag==1) nextras++;
-
-	char **extras = new char*[nextras];
-
-	for(int i=5;i<(argc);i++){ //copy all arguments to extras
-		extras[i-5] = (char*)malloc(strlen(argv[i])*sizeof(char));	
-		strcpy(extras[i-5],argv[i]);
-	}
-
-	init_gpu(); //exclusive mode ?
-
-	char slice_str[8];
-	char aux[8];
-
-
-	sprintf(slice_str,"%d",slice);
-	while(strlen(slice_str)<4){
-		strcpy(aux,"0");
-		strcat(aux,slice_str);
-		strcpy(slice_str,aux);
-	}
-
-	if(gflag==1){
-		    extras[nextras-1] = (char*)malloc((35+strlen(subjdir))*sizeof(char));	
-		    strcpy(extras[nextras-1],"--gradnonlin=");
-		    strcat(extras[nextras-1],subjdir);
-		    strcat(extras[nextras-1],"/grad_dev_slice_");	
-		    strcat(extras[nextras-1],slice_str);
-	}
-
-	xfibres_gpu(subjdir,slice,nextras,extras);
-
-	printf("--------------------------------\n");
-	printf("SLICE %i processed\n",slice);
-	printf("--------------------------------\n");	
-
-	return 0;
-}
-- 
GitLab