Lines Matching refs:command
42 #define CeedCallSystem(ceed, command, message) CeedCallBackend(CeedCallSystem_Core(ceed, command, m… argument
47 static int CeedCallSystem_Core(Ceed ceed, const char *command, const char *message) { in CeedCallSystem_Core() argument
48 CeedDebug(ceed, "Running command:\n$ %s", command); in CeedCallSystem_Core()
49 FILE *output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCallSystem_Core()
51 …put_stream != nullptr, ceed, CEED_ERROR_BACKEND, "Failed to %s\ncommand:\n$ %s", message, command); in CeedCallSystem_Core()
60 … CEED_ERROR_BACKEND, "Failed to %s\ncommand:\n$ %s\nerror:\n%s", message, command, output.c_str()); in CeedCallSystem_Core()
277 std::string command; in CeedCompileCore_Cuda() local
280 …command = "cargo +" + std::string(rust_toolchain) + " build --release --target nvptx64-nvidia-cuda… in CeedCompileCore_Cuda()
282 CeedCallSystem(ceed, command.c_str(), "build Rust crate"); in CeedCompileCore_Cuda()
290 …command = "$(find $(rustup run " + std::string(rust_toolchain) + " rustc --print sysroot) -name ll… 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()
304 command.c_str(), output.c_str()); in CeedCompileCore_Cuda()
317 command = std::string("clang++-") + std::to_string(llvm_version); in CeedCompileCore_Cuda()
318 output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCompileCore_Cuda()
327 …command = "clang++" + (use_llvm_version ? (std::string("-") + std::to_string(llvm_version)) : "") … in CeedCompileCore_Cuda()
330 command += opts[4]; in CeedCompileCore_Cuda()
331 CeedCallSystem(ceed, command.c_str(), "JiT kernel source"); in CeedCompileCore_Cuda()
335 …command = "$(find $(rustup run " + std::string(rust_toolchain) + " rustc --print sysroot) -name ll… in CeedCompileCore_Cuda()
356 command += dir + "/" + filename + " "; in CeedCompileCore_Cuda()
363 CeedCallSystem(ceed, command.c_str(), "link C and Rust source"); in CeedCompileCore_Cuda()