'2021/05'에 해당되는 글 56건

  1. 2021.05.12 놋북이 생겼습니다!
  2. 2021.05.12 distcc 만세!
  3. 2021.05.11 국내 출장? 외근?
  4. 2021.05.11 라즈베리2b+ 에서 vfpv3 빌드 성공!
  5. 2021.05.10 fp16
  6. 2021.05.10 imx6q neon tensorlow lite
  7. 2021.05.10 git log --stat
  8. 2021.05.09 git stash
  9. 2021.05.08 v50 / g8x wide mode
  10. 2021.05.07 gcc %p (nil)

스펙 상으로는 2인치 모니터 작고, 100g 많을 뿐인데

들었을때 헉!! 스러운 느낌이 든다.

별 것 아닌 것 같은데 1.1 kg와 1.2kg의 차이인가..

아무튼 별 것 아닌 것 같은데 13인치 초반과  15인치 중반의 차이도 큰 것 같기도 하고..

 

 

갤럭시북 플렉스 알파 NT730QCR!

i7-10510U (1.8GHz) / FHD / 16GB / 512GB / 13인치 터치 + wacom EMR

13.26인치 (33.7cm)

1.19kg(1190g)

[링크 : http://prod.danawa.com/info/?pcode=11489271]

 

기존에 사용하던 녀석은 2020 그램15 15ZD995-VX50K

i5-10210U (1.6GHz) / FHD / 16GB / 256GB+256GB

15.59인치 (39.6cm)

1099g

[링크 : http://prod.danawa.com/info/?pcode=10263870]

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

시간만 잘간다~  (0) 2021.05.20
휴가인데 휴가 같지가 않다.  (0) 2021.05.17
국내 출장? 외근?  (0) 2021.05.11
왼쪽 새끼 발톱 파괴!  (0) 2021.05.06
어른이 날 기념으로 아내 몰래 지르기  (0) 2021.05.04
Posted by 구차니

라즈베리 파이 3b+ 에 lxde 올리지 않고 콘솔로만 해서 메모리 최대한 확보하고 쓰는 중인데

비디오 메모리 64MB 정도 먹혔는지 가용 메모리가 706MiB 정도.

$ free -h
              total        used        free      shared  buff/cache   available
Mem:          924Mi        50Mi       706Mi       4.0Mi       166Mi       817Mi
Swap:          99Mi       9.0Mi        90Mi

 

그런 이유로 텐서플로우 빌드시 rpi 메모리가 2G 넘지 않으면 코어 하나만 쓰게 되어있다.

FREE_MEM="$(free -m | awk '/^Mem/ {print $2}')"
# Use "-j 4" only memory is larger than 2GB
if [[ "FREE_MEM" -gt "2000" ]]; then
  NO_JOB=4
else
  NO_JOB=1
fi

 

그래서 distcc 통해 개별 노드에서 2개씩, 총 3개 노드/ 6 core 쓰도록 하니

35~40분 정도 걸리던 빌드가 8분 40초 만에 끝내준다.

real    8m39.261s
user    2m47.210s
sys     0m51.071s

 

개별 노드에서 병렬시 2개 까지만 허락하도록 해놔야지 안그러면

메모리 부족으로 스왑한다고 io 폭주해서 라즈베리가 먹통이 된다.

/etc/default/distcc

#
# You can specify a maximum number of jobs, the server will accept concurrently
#
# JOBS=""

JOBS="2"

'프로그램 사용 > distcc & ccache' 카테고리의 다른 글

rpi distcc with ccache 실패 ㅠㅠ  (0) 2021.04.30
rpi distcc 성공인데 실패  (0) 2021.04.28
distcc hosts 파일과 순서  (0) 2016.10.19
distcc-pump 시도..  (0) 2016.10.18
distcc 를 DHCP 에서.. 2?  (0) 2016.10.18
Posted by 구차니

회사에서는 안먼데 집에서는 멀어서

빡센 동네로가면 그건 국내출장인가.. 외근인가? ㅠㅠ

 

교통이 좋아지니 국내출장은 사라지고

외근이 되니 먼가 콩고물도 없고

좋다고 해야하나 나쁘다고 해야하나?

Posted by 구차니
embeded/raspberry pi2021. 5. 11. 00:22

흐음.. 다른 옵션이 붙어서 그런가?

 

    CXXFLAGS += \
      -march=armv7-a \
      -mfpu=neon-vfpv3 \
      -mvectorize-with-neon-quad -ffast-math \
      -funsafe-math-optimizations \
      -ftree-vectorize \
      -fPIC

    CFLAGS += \
      -march=armv7-a \
      -mfpu=neon-vfpv3 \
      -mvectorize-with-neon-quad -ffast-math \
      -funsafe-math-optimizations \
      -ftree-vectorize \
      -fPIC

 

File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3
  Tag_Advanced_SIMD_arch: NEONv1
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_number_model: Finite
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_VFP_args: VFP registers
  Tag_ABI_optimization_goals: Aggressive Speed
  Tag_CPU_unaligned_access: v6

 

+

2021.05.12

아놔.. 회사에서 rpi 3b+ 에서 시도하니 vfpv2 / neon은 없이 나온다.

동일한 라즈베리 파이 이미지를 사용해서 gcc -v 하면 동일하게 나오는데 도대체 무슨 차이여!!!

 

 

'embeded > raspberry pi' 카테고리의 다른 글

rpi 4b spec + 부팅시간  (0) 2021.05.18
회사에 남...는(?!) 라즈베리 파이 4B  (0) 2021.05.12
rpi eeprom / usb boot  (0) 2021.05.06
회사돈으로 꿈 이루기 ㅋㅋ  (0) 2021.05.03
SLP (StereoPi Livestream Playground)  (0) 2021.04.30
Posted by 구차니

float가 대개 32bit

double이 대개 64bit 인데

fp16이라고 16bit짜리 half precision float point라는게 존재하네..

 

They can express values in the range ±65,504, with the minimum value above 1 being 1 + 1/1024.

In the IEEE 754-2008 standard, the 16-bit base-2 format is referred to as binary16. It is intended for storage of floating-point values in applications where higher precision is not essential for performing arithmetic computations.

[링크 : https://en.wikipedia.org/wiki/Half-precision_floating-point_format]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

current loop to rs232  (0) 2021.10.22
usb dwc  (0) 2021.09.23
gps 체크섬  (0) 2020.11.17
GPX, NMEA 포맷 변환  (0) 2020.11.05
NMEA / GPS 날짜&시간  (0) 2020.11.05
Posted by 구차니

이번 빌드 옵션들을 뒤져보다 보니 빼먹고 안 넣은게 있었네

(라고 쓰고 실은 귀찮았던...)

 

-mvectorize-with-neon-quad -ffast-math

[링크 : http://stackoverflow.com/questions/14962447/gcc-options-for-a-freescale-imx6q-arm-processor]

 

 

In addition GCC offers the -ffast-math flag which is a shortcut for several options, presenting the least conforming but fastest math mode. It enables -fno-trapping-math, -funsafe-math-optimizations, -ffinite-math-only, -fno-errno-math, -fno-signaling-nans, -fno-rounding-math, -fcx-limited-range and -fno-signed-zeros. Each of these flags violates IEEE in a different way. 

[링크 : http://gcc.gnu.org/wiki/FloatingPointMath]

 

 

Cortex-A9 -mcpu=cortex-a9 -mfpu=vfpv3-fp16 -mfpu=vfpv3-d16-fp16 -mfpu=neon-fp16

[링크 : http://www.programmersought.com/article/5320739655/]

 

-DENABLE_VFPV3=ON ARM VFPv3 floating 

[링크 : http://www.google.com/amp/s/learnopencv.com/build-and-install-opencv-4-for-raspberry-pi/amp/]

 

'프로그램 사용 > yolo_tensorflow' 카테고리의 다른 글

tensorflow lite interpreter->AllocateTensors()  (0) 2021.05.26
tflite common.h  (0) 2021.05.21
tflite type  (0) 2021.05.01
tflite example  (0) 2021.04.19
tflite convert  (0) 2021.04.16
Posted by 구차니

'프로그램 사용 > Version Control' 카테고리의 다른 글

git blame  (0) 2021.06.21
git pull rebase 설정  (0) 2021.06.02
git stash  (0) 2021.05.09
git 저장소 합치기 해보았으나..  (0) 2021.04.07
git 특정 디렉토리만 clone 하기  (0) 2021.04.07
Posted by 구차니

이번에 한번 날릴 각오로(!) 써봐야지 -_ㅠ

git stash [push]

git stash list

git stash apply | pop

SYNOPSIS
       git stash list [<options>]
       git stash show [<stash>]
       git stash drop [-q|--quiet] [<stash>]
       git stash ( pop | apply ) [--index] [-q|--quiet] [<stash>]
       git stash branch <branchname> [<stash>]
       git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
                    [-u|--include-untracked] [-a|--all] [-m|--message <message>]
                    [--] [<pathspec>...]]
       git stash clear
       git stash create [<message>]
       git stash store [-m|--message <message>] [-q|--quiet] <commit>

[링크 : https://gmlwjd9405.github.io/2018/05/18/git-stash.html]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git pull rebase 설정  (0) 2021.06.02
git log --stat  (0) 2021.05.10
git 저장소 합치기 해보았으나..  (0) 2021.04.07
git 특정 디렉토리만 clone 하기  (0) 2021.04.07
git lfs  (0) 2021.04.06
Posted by 구차니

와.. 이거슨 혁신

일본분이지만 사랑합니다!!!!

 

다만 아쉬운건 해당 프로그램에 대해서 전체 화면을 강제하는 것이기에

아무생각없이 앱 실행없이 해당 기능 활성화 하면

이상하게 작동을 하는 것 처럼 보인다는 것 -_ㅠ

 

[링크 : https://piunikaweb.com/2019/12/18/lg-v50-g8x-wide-mode/]

Posted by 구차니
프로그램 사용/gcc2021. 5. 7. 17:30

%p로 출력하니 0일 경우 (nil)로 출력되네?

 

[링크 : https://stackoverflow.com/questions/4744650/nil-pointer-in-c-c]

'프로그램 사용 > gcc' 카테고리의 다른 글

gcc vectorized loop  (0) 2021.06.30
gcc unsigned to signed cast  (0) 2021.06.22
gcc -D 옵션 인자를 printf로 출력하기  (0) 2021.04.08
Auto-vectorization in GCC  (0) 2021.03.25
gcc -march 옵션  (0) 2021.01.24
Posted by 구차니