Lines Matching refs:c_str
49 FILE *output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCallSystem_Core()
59 CeedDebug(ceed, "output:\n%s\n", output.c_str()); in CeedCallSystem_Core()
60 … CEED_ERROR_BACKEND, "Failed to %s\ncommand:\n$ %s\nerror:\n%s", message, command, output.c_str()); in CeedCallSystem_Core()
125 opts[1] = arch_arg.c_str(); in CeedCompileCore_Cuda()
138 … CeedCallBackend(CeedStringAllocCopy(include_dir_arg.str().c_str(), (char **)&opts[num_opts + i])); in CeedCompileCore_Cuda()
152 …CeedCallBackend(CeedStringAllocCopy(define_arg.str().c_str(), (char **)&opts[num_opts + num_jit_so… in CeedCompileCore_Cuda()
162 CeedDebug(ceed, "Source:\n%s\n", code.str().c_str()); in CeedCompileCore_Cuda()
166 CeedCallNvrtc(ceed, nvrtcCreateProgram(&prog, code.str().c_str(), NULL, 0, NULL, NULL)); in CeedCompileCore_Cuda()
244 FILE *file = fopen(filename.c_str(), "w"); in CeedCompileCore_Cuda()
247 fputs(code.str().c_str(), file); in CeedCompileCore_Cuda()
282 CeedCallSystem(ceed, command.c_str(), "build Rust crate"); in CeedCompileCore_Cuda()
291 CeedDebug(ceed, "Attempting to detect Rust LLVM version.\ncommand:\n$ %s", command.c_str()); in CeedCompileCore_Cuda()
292 FILE *output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCompileCore_Cuda()
302 CeedDebug(ceed, "output:\n%s", output.c_str()); in CeedCompileCore_Cuda()
304 command.c_str(), output.c_str()); in CeedCompileCore_Cuda()
306 const char *version_substring = strstr(output.c_str(), "LLVM version "); in CeedCompileCore_Cuda()
318 output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCompileCore_Cuda()
331 CeedCallSystem(ceed, command.c_str(), "JiT kernel source"); in CeedCompileCore_Cuda()
332 … ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_1_wrapped.ll").c_str(), "update JiT fil… in CeedCompileCore_Cuda()
346 DIR *dp = opendir(dir.c_str()); in CeedCompileCore_Cuda()
348 … CeedCheck(dp != nullptr, ceed, CEED_ERROR_BACKEND, "Could not open directory: %s", dir.c_str()); in CeedCompileCore_Cuda()
363 CeedCallSystem(ceed, command.c_str(), "link C and Rust source"); in CeedCompileCore_Cuda()
368 .c_str(), in CeedCompileCore_Cuda()
370 …, ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_2_linked.ll").c_str(), "update JiT fil… in CeedCompileCore_Cuda()
375 .c_str(), in CeedCompileCore_Cuda()
377 …, ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_4_final.ptx").c_str(), "update JiT fil… in CeedCompileCore_Cuda()
388 int result = cuModuleLoadData(module, ptx_data.c_str()); in CeedCompileCore_Cuda()