Commit 6f9ffdad authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Fix cuda context to avoid error with cuInit.

parent 097dc557
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ namespace gpu {
///  @params[in] result Result code of the operation.
///  @params[in] name   Name of the operation.
//------------------------------------------------------------------------------
    static check_error(CUresult result,
    static void check_error(CUresult result,
                            const std::string &name) {
#ifndef NDEBUG
        const char *error;
+4 −2
Original line number Diff line number Diff line
@@ -58,7 +58,9 @@ namespace jit {
///  @returns The maximum available concurrency.
//------------------------------------------------------------------------------
        static size_t max_concurrency() {
            return gpu_context_type::max_concurrency();
            const size_t num = gpu_context_type::max_concurrency();
            std::cout << "Located " << num << " devices." << std::endl;
            return num;
        }

//------------------------------------------------------------------------------
+2 −2

File changed.

Contains only whitespace changes.