Commits

Sam Preston committed d44f9d2

minor fixes to testing

  • Participants
  • Parent commits 082d498

Comments (0)

Files changed (2)

File Testing/CpuGpuUnitTest.py

         Splat(self.hIm, self.hRandH, self.hRandIm)
         Splat(self.dIm, self.dRandH, self.dRandIm)
         self.TestIm(self.hIm,self.dIm, 
-                    name='Splat', disp=disp)
+                    name='Splat', disp=disp, avEps=2e-6)
 
     #
     # SplatLargeRange (splatting images with large intensity values > 2048)
         Ad(self.hField, self.hRandH, self.hRandV)
         Ad(self.dField, self.dRandH, self.dRandV)
         self.TestField(self.hField,self.dField, 
-                       name='Ad', disp=disp)
+                       name='Ad', disp=disp, avEps=2e-6)
 
     #
     # CoAd (CoAdjoint  operator)

File Testing/NumpyUnitTest.py

         super(NumpyTestCase, self).__init__(methodName)
 
         # memory type
-        # if GetNumberOfCUDADevices() > 0:
-        #     self.mType = MEM_DEVICE
-        # else:
-        #     self.mType = MEM_HOST
+        if GetNumberOfCUDADevices() > 0:
+            self.mType = MEM_DEVICE
+        else:
+            self.mType = MEM_HOST
 
         # allowable average abs. diff
         self.AvEps = 1e-6