Skip to content

Commit

Permalink
more detailed taichi start up messages
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Feb 22, 2020
1 parent 8e1e54b commit 18493d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/taichi/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def prepare_sandbox(src):


if is_release():
print("[Release mode]")
print("[Taichi] mode=release")
sys.path.append(os.path.join(package_root(), 'lib'))
if get_os_name() != 'win':
link_src = os.path.join(package_root(), 'lib', 'taichi_core.so')
Expand All @@ -188,6 +188,7 @@ def prepare_sandbox(src):
tc_core.set_python_package_dir(package_root())
os.makedirs(tc_core.get_repo_dir(), exist_ok=True)
else:
print("[Taichi] mode=development")
if get_os_name() == 'osx':
bin_dir = get_bin_directory()
os.environ['DYLD_FALLBACK_LIBRARY_PATH'] = get_runtime_directory()
Expand Down Expand Up @@ -344,9 +345,7 @@ def require_version(major, minor=None, patch=None):

device_string = 'cpu only' if not tc_core.with_cuda() else 'cuda {}'.format(
tc_core.cuda_version())
print('[Taichi version {}, {}, commit {}]'.format(
tc_core.get_version_string(), device_string,
tc_core.get_commit_hash()[:8]))
print(f'[Taichi] version {tc_core.get_version_string()}, {device_string}, commit {tc_core.get_commit_hash()[:8]}, python {sys.version_info[0]}.{sys.version_info[1]}.{sys.version_info[2]}')

if not is_release():
tc_core.set_core_trigger_gdb_when_crash(True)

0 comments on commit 18493d8

Please sign in to comment.