https://github.com/Microsoft/CNTK
Raw File
Tip revision: c3e4f667455d8f39506e16fb14615840e1359446 authored by Mark Hillebrand on 13 September 2017, 14:20:33 UTC
Tests/Install/linux/prep-run-test.sh: do not run CNTK_104_Finance_Timeseries_Basic_with_Pandas_Numpy.ipynb
Tip revision: c3e4f66
cudalatticeops.cu
// .cu file --#includes all actual .cu files which we store as .cu.h so we get syntax highlighting (VS does not recognize .cu files)
//
// F. Seide, V-hansu

#include <stdexcept>
#include "Basics.h"
#include "BestGpu.h"

#ifndef CPUONLY

namespace msra { namespace cuda {

// call this after all kernel launches
// This is non-blocking. It catches launch failures, but not crashes during execution.
static void checklaunch(const char* fn)
{
    cudaError_t rc = cudaGetLastError();
    if (rc != cudaSuccess)
        RuntimeError("%s: launch failure: %s (cuda error %d)", fn, cudaGetErrorString(rc), (int) rc);
}
};
};

// now include actual code which is in those files to allow for code highlighting etc.
#include "cudalatticeops.cu.h"

#endif // CPUONLY
back to top