Commit 80186db4 authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Make cuda error methods static since they dont access instance variables or methods.

parent 02e2256f
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ namespace gpu {
///  @brief  Check results of realtime compile.
///  @params[in] name   Name of the operation.
//------------------------------------------------------------------------------
        void check_nvrtc_error(nvrtcResult result,
        static void check_nvrtc_error(nvrtcResult result,
                                      const std::string &name) {
#ifndef NDEBUG
            std::cout << name << " " << result << " "
@@ -57,7 +57,7 @@ namespace gpu {
///  @params[in] result Result code of the operation.
///  @params[in] name   Name of the operation.
//------------------------------------------------------------------------------
        void check_error(CUresult result,
        static void check_error(CUresult result,
                                const std::string &name) {
#ifndef NDEBUG
            const char *error;
@@ -74,7 +74,7 @@ namespace gpu {
///  @params[in] result Result code of the operation.
///  @params[in] name   Name of the operation.
//------------------------------------------------------------------------------
        void check_error_async(CUresult result,
        static void check_error_async(CUresult result,
                                      const std::string &name) {
            check_error(result, name);
#ifndef NDEBUG