   luaT_registeratname(L, cunn_SpatialMaxPooling__, "nn");
   lua_pop(L,1);
 }
-
-#undef CUDA_MAX_THREADS

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

#include "utils.h"

/*
 * Description:
