MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / compile_helper

Function compile_helper

codegeex/megatron/data/dataset_utils.py:66–78  ·  view source on GitHub ↗

Compile helper function ar runtime. Make sure this is invoked on a single process.

()

Source from the content-addressed store, hash-verified

64
65
66def compile_helper():
67 """Compile helper function ar runtime. Make sure this
68 is invoked on a single process."""
69 import os
70 import subprocess
71
72 path = os.path.abspath(os.path.dirname(__file__))
73 ret = subprocess.run(["make", "-C", path])
74 if ret.returncode != 0:
75 print("Making C++ dataset helpers module failed, exiting.")
76 import sys
77
78 sys.exit(1)
79
80
81def get_a_and_b_segments(sample, np_rng):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected