| ceed-cuda-compile.cpp (20a16a5fde8c37c2820b3798c7dd8f97d46128bb) | ceed-cuda-compile.cpp (bdcc27286a8034df1dd97bd8aefef85a0efa7b00) |
|---|---|
| 1// Copyright (c) 2017-2025, 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" --- 108 unchanged lines hidden (view full) --- 117 118 // Create Program 119 CeedCallNvrtc(ceed, nvrtcCreateProgram(&prog, code.str().c_str(), NULL, 0, NULL, NULL)); 120 121 // Compile kernel 122 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- ATTEMPTING TO COMPILE JIT SOURCE ----------\n"); 123 CeedDebug(ceed, "Source:\n%s\n", code.str().c_str()); 124 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- END OF JIT SOURCE ----------\n"); | 1// Copyright (c) 2017-2025, 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" --- 108 unchanged lines hidden (view full) --- 117 118 // Create Program 119 CeedCallNvrtc(ceed, nvrtcCreateProgram(&prog, code.str().c_str(), NULL, 0, NULL, NULL)); 120 121 // Compile kernel 122 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- ATTEMPTING TO COMPILE JIT SOURCE ----------\n"); 123 CeedDebug(ceed, "Source:\n%s\n", code.str().c_str()); 124 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- END OF JIT SOURCE ----------\n"); |
| 125 if (CeedDebugFlag(ceed)) { 126 // LCOV_EXCL_START 127 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- JiT COMPILER OPTIONS ----------\n"); 128 for (CeedInt i = 0; i < num_opts + num_jit_source_dirs + num_jit_defines; i++) { 129 CeedDebug(ceed, "Option %d: %s", i, opts[i]); 130 } 131 CeedDebug(ceed, ""); 132 CeedDebug256(ceed, CEED_DEBUG_COLOR_ERROR, "---------- END OF JiT COMPILER OPTIONS ----------\n"); 133 // LCOV_EXCL_STOP 134 } |
|
| 125 nvrtcResult result = nvrtcCompileProgram(prog, num_opts + num_jit_source_dirs + num_jit_defines, opts); 126 127 for (CeedInt i = 0; i < num_jit_source_dirs; i++) { 128 CeedCallBackend(CeedFree(&opts[num_opts + i])); 129 } 130 for (CeedInt i = 0; i < num_jit_defines; i++) { 131 CeedCallBackend(CeedFree(&opts[num_opts + num_jit_source_dirs + i])); 132 } --- 142 unchanged lines hidden --- | 135 nvrtcResult result = nvrtcCompileProgram(prog, num_opts + num_jit_source_dirs + num_jit_defines, opts); 136 137 for (CeedInt i = 0; i < num_jit_source_dirs; i++) { 138 CeedCallBackend(CeedFree(&opts[num_opts + i])); 139 } 140 for (CeedInt i = 0; i < num_jit_defines; i++) { 141 CeedCallBackend(CeedFree(&opts[num_opts + num_jit_source_dirs + i])); 142 } --- 142 unchanged lines hidden --- |