Skip to content

Instantly share code, notes, and snippets.

View rhee-elten's full-sized avatar

rhee-elten

  • Linkgenesis
  • Seoul, South Korea
  • 08:20 (UTC +09:00)
View GitHub Profile
@rhee-elten
rhee-elten / Windows Process List How To.txt
Last active May 16, 2022 01:33 — forked from rhee/Windows Process List How To.txt
Windows Process List How To.txt
Windows Process List How To.txt
## https://www.nextofwindows.com/windows-tip-3-ways-to-print-a-list-of-running-processes
tasklist
tasklist /v /fi "sessionname eq console" /fo csv
PS C:\> get-process | out-file $env:userprofile\desktop\processes.txt
PS C:\> get-process-computername computername
PS C:\> get-process | out-printer
@rhee-elten
rhee-elten / TF_FORCE_GPU_ALLOW_GROWTH_example.bashrc
Last active May 16, 2022 03:12 — forked from rhee/TF_FORCE_GPU_ALLOW_GROWTH_example.bashrc
TF_FORCE_GPU_ALLOW_GROWTH_example.bashrc
:
export TF_FORCE_GPU_ALLOW_GROWTH=true
export CUDA_DEVICE_ORDER=PCI_BUS_ID
export CUDA_VISIBLE_DEVICES=0,1,2,3
export TF_CPP_MIN_LOG_LEVEL=3
# 참고: https://github.com/tensorflow/tensorflow/issues/22936#issuecomment-441790882
# Would you mind running your code with the following environment variables set:
# TF_ENABLE_WHILE_V2=1 TF_ENABLE_COND_V2=1 ??
## monitor GPU usage in jupyter notebook -- rhee.elten@gmail.com
## https://gist.github.com/rhee-elten/1a1070e3a812ca863c3b937b5180b2f8
# pylint: disable=invalid-name
# pylint: disable=using-constant-test
# pylint: disable=wrong-import-position
# pylint: disable=missing-class-docstring
# pylint: disable=missing-function-docstring
if 10:
import os