def main(): if len(sys.argv) < 3: print("Usage: python get_itt.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "ITT") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "ittapi") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "src") src_path = os.path.join(src_path, "ittnotify") build_utils.copy(src_path, dst_path, [ "disable_warnings.h", "ittnotify_config.h", "ittnotify_static.c", "ittnotify_static.h", "ittnotify_types.h" ]) src_path = os.path.join(clone_path, "include") build_utils.copy(src_path, dst_path, ["ittnotify.h"]) dst_path = os.path.join(dst_path, "legacy") if (not os.path.exists(dst_path)): os.mkdir(dst_path) src_path = os.path.join(src_path, "legacy") build_utils.copy(src_path, dst_path, ["ittnotify.h"])
def main(): if len(sys.argv) < 3: print("Usage: python get_gmm_headers.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "igdgmm") if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "inc") if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "common") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "gmmlib") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "Source") src_path = os.path.join(src_path, "inc") src_path = os.path.join(src_path, "common") build_utils.copy(src_path, dst_path, ["igfxfmid.h"])
def main(): if len(sys.argv) < 3: print("Usage: python get_igc_headers.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "igc") if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "ocl_igc_shared") if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "executable_format") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "intel-graphics-compiler") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "IGC") src_path = os.path.join(src_path, "AdaptorOCL") src_path = os.path.join(src_path, "ocl_igc_shared") src_path = os.path.join(src_path, "executable_format") build_utils.copy(src_path, dst_path, ["program_debug_data.h", "patch_list.h"])
def main(): if len(sys.argv) < 3: print( "Usage: python get_ocl_tracing_headers.py <include_path> <build_path>" ) return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "CL") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "compute-runtime") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "opencl") src_path = os.path.join(src_path, "source") src_path = os.path.join(src_path, "tracing") build_utils.copy(src_path, dst_path, ["tracing_api.h", "tracing_types.h"]) postprocess(os.path.join(dst_path, "tracing_api.h"))
def main(): if len(sys.argv) < 3: print("Usage: python get_iga_headers.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "IGA") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "intel-graphics-compiler") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "visa") src_path = os.path.join(src_path, "iga") src_path = os.path.join(src_path, "IGALibrary") src_path = os.path.join(src_path, "api") build_utils.copy(src_path, dst_path, [ "iga.h", "iga_types_ext.hpp", "iga_types_swsb.hpp", "iga_bxml_ops.hpp", "iga_bxml_enums.hpp", "kv.h", "kv.hpp" ])
def main(): if len(sys.argv) < 3: print("Usage: python get_ocl_headers.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) dst_path = os.path.join(dst_path, "CL") if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "OpenCL-Headers") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "CL") build_utils.copy(src_path, dst_path, ["cl.h", "cl_gl.h", "cl_version.h", "cl_platform.h"])
def main(): if len(sys.argv) < 3: print("Usage: python get_md_headers.py <include_path> <build_path>") return dst_path = sys.argv[1] if (not os.path.exists(dst_path)): os.mkdir(dst_path) clone_path = sys.argv[2] clone_path = os.path.join(clone_path, "metrics-discovery") build_utils.clone(url, commit, clone_path) src_path = os.path.join(clone_path, "inc") src_path = os.path.join(src_path, "common") src_path = os.path.join(src_path, "instrumentation") src_path = os.path.join(src_path, "api") build_utils.copy(src_path, dst_path, ["metrics_discovery_api.h"])