Lines Matching refs:std
49 FILE *output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCallSystem_Core()
54 std::string output = ""; in CeedCallSystem_Core()
67 using std::ifstream;
68 using std::ofstream;
69 using std::ostringstream;
84 std::ostringstream code; in CeedCompileCore_Cuda()
114 std::string arch_arg = in CeedCompileCore_Cuda()
124 + std::to_string(prop.major) + std::to_string(prop.minor); in CeedCompileCore_Cuda()
135 std::ostringstream include_dir_arg; in CeedCompileCore_Cuda()
149 std::ostringstream define_arg; in CeedCompileCore_Cuda()
243 …std::string filename = std::string("temp/kernel_") + std::to_string(build_id) + std::string("_0_so… in CeedCompileCore_Cuda()
257 std::string rust_dirs[10]; in CeedCompileCore_Cuda()
264 rust_dirs[i] = std::string(rust_source_dirs[i]); in CeedCompileCore_Cuda()
269 char *rust_toolchain = std::getenv("RUST_TOOLCHAIN"); in CeedCompileCore_Cuda()
277 std::string command; in CeedCompileCore_Cuda()
280 …command = "cargo +" + std::string(rust_toolchain) + " build --release --target nvptx64-nvidia-cuda… in CeedCompileCore_Cuda()
290 …command = "$(find $(rustup run " + std::string(rust_toolchain) + " rustc --print sysroot) -name ll… in CeedCompileCore_Cuda()
292 FILE *output_stream = popen((command + std::string(" 2>&1")).c_str(), "r"); in CeedCompileCore_Cuda()
297 std::string output = ""; in CeedCompileCore_Cuda()
314 ceed_data->llvm_version = llvm_version = std::stoi(version_substring); 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()
328 …std::to_string(prop.major) + std::to_string(prop.minor) + " --cuda-device-only -emit-llvm -S temp/… in CeedCompileCore_Cuda()
329 "_0_source.cu -o temp/kernel_" + std::to_string(build_id) + "_1_wrapped.ll "; in CeedCompileCore_Cuda()
332 …CeedCallSystem(ceed, ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_1_wrapped.ll").c_st… in CeedCompileCore_Cuda()
335 …command = "$(find $(rustup run " + std::string(rust_toolchain) + " rustc --print sysroot) -name ll… in CeedCompileCore_Cuda()
336 std::to_string(build_id) + in CeedCompileCore_Cuda()
339 std::to_string(build_id) + "_2_linked.ll "; in CeedCompileCore_Cuda()
345 std::string dir = rust_dirs[i] + "/target/nvptx64-nvidia-cuda/release"; in CeedCompileCore_Cuda()
353 std::string filename(entry->d_name); in CeedCompileCore_Cuda()
365 ("$(find $(rustup run " + std::string(rust_toolchain) + in CeedCompileCore_Cuda()
366 …tc --print sysroot) -name opt) --passes internalize,inline temp/kernel_" + std::to_string(build_id… in CeedCompileCore_Cuda()
367 "_2_linked.ll -o temp/kernel_" + std::to_string(build_id) + "_3_opt.bc") in CeedCompileCore_Cuda()
370 …CeedCallSystem(ceed, ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_2_linked.ll").c_str… in CeedCompileCore_Cuda()
372 …("$(find $(rustup run " + std::string(rust_toolchain) + " rustc --print sysroot) -name llc) -O3 -m… in CeedCompileCore_Cuda()
373 …std::to_string(prop.major) + std::to_string(prop.minor) + " temp/kernel_" + std::to_string(build_i… in CeedCompileCore_Cuda()
374 "_3_opt.bc -o temp/kernel_" + std::to_string(build_id) + "_4_final.ptx") in CeedCompileCore_Cuda()
377 …CeedCallSystem(ceed, ("chmod 0777 temp/kernel_" + std::to_string(build_id) + "_4_final.ptx").c_str… in CeedCompileCore_Cuda()
380 ifstream ptxfile("temp/kernel_" + std::to_string(build_id) + "_4_final.ptx"); in CeedCompileCore_Cuda()