Skip to content

Instantly share code, notes, and snippets.

View lseongjoo's full-sized avatar

Lee Seongjoo lseongjoo

  • CodeBasic
  • Seoul, Korea
View GitHub Profile
@lseongjoo
lseongjoo / build_numpy.sh
Created February 13, 2024 14:02
Numpy build
sudo apt-get update
sudo apt-get install cmake ninja-build gfortran
pip install --upgrade pip
pip install cython
pip install numpy==1.23.* --no-binary=:all: --force-reinstall --no-cache -v
pip install typing-extensions pytest hypothesis
python -c "import numpy; numpy.test()"
@lseongjoo
lseongjoo / build_blis_for_numpy.sh
Created February 13, 2024 14:00
BLIS build for numpy
./configure --enable-cblas --enable-threading=openmp auto
make
make check
sudo make install
@lseongjoo
lseongjoo / vhd4wsl2.md
Created October 1, 2023 05:09 — forked from spajak/vhd4wsl2.md
Creating virtual hard disk (VHD) for WSL2

Creating additional virtual hard disk (VHDX) for WSL2 with ext4 filesystem

Lines starting with # mean the commands have to be executed by root user under Linux shell (WSL distro). All other commands have to be executed under Windows-PowerShell as Administrator.

Make VHDX disk file and mount it under Windows

New-VHD support.vhdx -SizeBytes 25GB -Dynamic -BlockSizeBytes 1MB
Write-Output "\\.\PhysicalDrive$((Mount-VHD -Path support.vhdx -PassThru | Get-Disk).Number)"
@lseongjoo
lseongjoo / environment.yml
Last active March 13, 2023 08:06
딥러닝 소프트웨어 설정 (Apple Silicon)
name: pydeep
channels:
- defaults
- conda-forge
- apple
dependencies:
- python=3.9
- pip
- pandas
- matplotlib
@lseongjoo
lseongjoo / environment.yml
Last active March 13, 2023 08:33
딥러닝 소프트웨어 환경 설정 (x86 GPU)
name: pydeep
channels:
- defaults
- conda-forge
- nvidia
dependencies:
- python=3.9
- pip
- pandas
- matplotlib
@lseongjoo
lseongjoo / m1-max-numpy-setup.md
Created March 10, 2023 15:21 — forked from MarkDana/m1-max-numpy-setup.md
Install NumPy on M1 Max

How to install numpy on M1 Max, with the most accelerated performance (Apple's vecLib)? Here's the answer as of Dec 6 2021.


Steps

I. Install miniforge

So that your Python is run natively on arm64, not translated via Rosseta.

  1. Download Miniforge3-MacOSX-arm64.sh, then
  2. Run the script, then open another shell
$ bash Miniforge3-MacOSX-arm64.sh
@lseongjoo
lseongjoo / install_tensorflow_ubuntu.sh
Created March 10, 2023 00:33
TensorFlow for Ubuntu 22.04 (+WSL 2)
# 파이썬 환경 생성 및 활성화
conda create --name tf python=3.9
conda activate tf
# CUDA+cuDNN 설치 및 설정
conda install -c conda-forge cudatoolkit=11.2.2 cudnn=8.1.0
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/
mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
@lseongjoo
lseongjoo / numpy_for_apple_silicon.md
Last active March 9, 2023 20:46
NumPy for Apple Silicon

Build from source.

pip install cython pybind11
pip install --no-binary :all: numpy
@lseongjoo
lseongjoo / pynlp.md
Last active June 20, 2023 04:21
자연어 처리 환경 설정

Codebasic (c) 2023

다음 문서는 아래 플랫폼별 딥러닝 기반 자연어 소프트웨어 라이브러리 설치 절차를 안내합니다.

플랫폼

  1. Windows (x86-64bit)
  2. 유닉스 계열 (Unix-Like)
    1. Mac (Apple Silicon/Intel x86-64bit)
    2. Linux (x86-64bit)
@lseongjoo
lseongjoo / performance.md
Last active October 25, 2022 04:29
데이터 과학 소프트웨어 라이브러리 성능 향상을 위한 설정