| ceed-hip-compile.cpp (edaedbd99d2dd8ac708a4ee70125a879e0b5efb0) | ceed-hip-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-hip-compile.h" --- 91 unchanged lines hidden (view full) --- 100 // Compile kernel 101 hiprtcResult result = hiprtcCompileProgram(prog, num_opts, opts); 102 103 if (result != HIPRTC_SUCCESS) { 104 size_t log_size; 105 char *log; 106 107 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-hip-compile.h" --- 91 unchanged lines hidden (view full) --- 100 // Compile kernel 101 hiprtcResult result = hiprtcCompileProgram(prog, num_opts, opts); 102 103 if (result != HIPRTC_SUCCESS) { 104 size_t log_size; 105 char *log; 106 107 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); |
| 108 CeedDebug(ceed, "Source:\n%s\n", code); | 108 CeedDebug(ceed, "Source:\n%s\n", code.str().c_str()); |
| 109 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); 110 CeedChk_hiprtc(ceed, hiprtcGetProgramLogSize(prog, &log_size)); 111 CeedCallBackend(CeedMalloc(log_size, &log)); 112 CeedCallHiprtc(ceed, hiprtcGetProgramLog(prog, log)); 113 return CeedError(ceed, CEED_ERROR_BACKEND, "%s\n%s", hiprtcGetErrorString(result), log); 114 } 115 116 CeedCallHiprtc(ceed, hiprtcGetCodeSize(prog, &ptx_size)); --- 44 unchanged lines hidden --- | 109 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- CEED JIT SOURCE FAILED TO COMPILE ----------\n"); 110 CeedChk_hiprtc(ceed, hiprtcGetProgramLogSize(prog, &log_size)); 111 CeedCallBackend(CeedMalloc(log_size, &log)); 112 CeedCallHiprtc(ceed, hiprtcGetProgramLog(prog, log)); 113 return CeedError(ceed, CEED_ERROR_BACKEND, "%s\n%s", hiprtcGetErrorString(result), log); 114 } 115 116 CeedCallHiprtc(ceed, hiprtcGetCodeSize(prog, &ptx_size)); --- 44 unchanged lines hidden --- |