   // check for errors
   cudaError_t err = cudaGetLastError();
   if (err != cudaSuccess) {
-    printf("error in SpatialMaxsampling.updateOutput: %s\n", cudaGetErrorString(err));
+    printf("error in SpatialMaxPooling.updateOutput: %s\n", cudaGetErrorString(err));
     THError("aborting");
   }
   return 1;

  // check for errors
  cudaError_t err = cudaGetLastError();
  if (err != cudaSuccess) {
    printf("error in SpatialMaxsampling.updateGradInput: %s\n", cudaGetErrorString(err));
    THError("aborting");
  }
  // clean

#include "utils.h"

/*
 * Description:
