From b8ab17b84a6da8ea868546bed372c5a868e34f71 Mon Sep 17 00:00:00 2001
From: Moises Fernandez <moisesf@fmrib.ox.ac.uk>
Date: Tue, 4 Jun 2013 09:55:00 +0000
Subject: [PATCH] Initialise a GPU before starting

---
 xfibres_gpu.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xfibres_gpu.cc b/xfibres_gpu.cc
index 7a4e852..503444d 100644
--- a/xfibres_gpu.cc
+++ b/xfibres_gpu.cc
@@ -30,6 +30,8 @@ int main(int argc, char *argv[]){
 	double time;
     	gettimeofday(&t1,NULL); 
 
+	init_gpu();
+
 	// Setup logging:
     	Log& logger = LogSingleton::getInstance();
     	xfibresOptions& opts = xfibresOptions::getInstance();
-- 
GitLab