| ceed-cuda-compile.cpp (edaedbd99d2dd8ac708a4ee70125a879e0b5efb0) | ceed-cuda-compile.cpp (f5a0ec79ee40256da5bb30a5dc71b4cb75ba3925) |
|---|---|
| 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8#include "ceed-cuda-compile.h" --- 84 unchanged lines hidden (view full) --- 93 // Compile kernel 94 nvrtcResult result = nvrtcCompileProgram(prog, num_opts, opts); 95 96 if (result != NVRTC_SUCCESS) { 97 char *log; 98 size_t log_size; 99 100 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); | 1// Copyright (c) 2017-2022, Lawrence Livermore National Security, LLC and other CEED contributors. 2// All Rights Reserved. See the top-level LICENSE and NOTICE files for details. 3// 4// SPDX-License-Identifier: BSD-2-Clause 5// 6// This file is part of CEED: http://github.com/ceed 7 8#include "ceed-cuda-compile.h" --- 84 unchanged lines hidden (view full) --- 93 // Compile kernel 94 nvrtcResult result = nvrtcCompileProgram(prog, num_opts, opts); 95 96 if (result != NVRTC_SUCCESS) { 97 char *log; 98 size_t log_size; 99 100 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); |
| 101 CeedDebug(ceed, "Source:\n%s\n", code); | 101 CeedDebug(ceed, "Source:\n%s\n", code.str().c_str()); |
| 102 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); 103 CeedCallNvrtc(ceed, nvrtcGetProgramLogSize(prog, &log_size)); 104 CeedCallBackend(CeedMalloc(log_size, &log)); 105 CeedCallNvrtc(ceed, nvrtcGetProgramLog(prog, log)); 106 return CeedError(ceed, CEED_ERROR_BACKEND, "%s\n%s", nvrtcGetErrorString(result), log); 107 } 108 109 CeedCallNvrtc(ceed, nvrtcGetPTXSize(prog, &ptx_size)); --- 71 unchanged lines hidden --- | 102 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); 103 CeedCallNvrtc(ceed, nvrtcGetProgramLogSize(prog, &log_size)); 104 CeedCallBackend(CeedMalloc(log_size, &log)); 105 CeedCallNvrtc(ceed, nvrtcGetProgramLog(prog, log)); 106 return CeedError(ceed, CEED_ERROR_BACKEND, "%s\n%s", nvrtcGetErrorString(result), log); 107 } 108 109 CeedCallNvrtc(ceed, nvrtcGetPTXSize(prog, &ptx_size)); --- 71 unchanged lines hidden --- |