pycuda, windows 10, geforce 840m

1 Install microsoft visual studio build tools http://landinghub.visualstudio.com/visual-cpp-build-tools

2 install NVIDIA CUDA package (b.e. cuda_8.0.61_win10.exe )

3 install ANACONDA

4 install numpy

pip install numpy --upgrade

5 install pycuda (b.e. pycuda‑2017.1.1+cuda8061‑cp36‑cp36m‑win_amd64.whl )

http://www.lfd.uci.edu/~gohlke/pythonlibs/?cm_mc_uid=50078777590415070117461&cm_mc_sid_50200000=1507011746#pycuda

6 specify the path to cl.exe.

  1. go to «Control Panel\All Control Panel Items\System» and select «advanced system settings»
  2. select ‘Environment Valiables’.
  3. under system variables, find PATH, click edit, and add the path to cl.exe. it should be:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\

Make sure when you installed visual studios, you selected to install ‘c++’ compiler. it is not installed by default. if you didn’t, re-run your visual studio installer and select to install the c++ compiler.

once you finish with that, you might need to add the following system variables

INCLUDE = C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

LIB = C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\um\x64;C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64

LINKS

https://stackoverflow.com/questions/40856535/pycuda-nvcc-fatal-cannot-find-compiler-cl-exe-in-path

https://www.ibm.com/developerworks/community/blogs/jfp/entry/Installing_PyCUDA_On_Anaconda_For_Windows?lang=en

https://wiki.tiker.net/PyCuda

https://documen.tician.de/pycuda/

 

Реклама
Рубрика: admin, gpu, programming, python | Оставить комментарий

start Nautilus from shell

nano ~/.bash_aliases

alias start=’nautilus  &> /dev/null’

$ start /some/path/

Рубрика: admin, linux | Оставить комментарий

move deployed linux to external SD card

1 format and create partitions on sd card (/dev/sdb)

  • with fdisk
  • with gparted (my choise)

result:
Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdb1           2048 53110783 53108736 25.3G 83 Linux
/dev/sdb2       53110784 62332927  9222144  4.4G  b W95 FAT32

2 copy deployed linux img to linux machime

3 mount source and destination

mount  /tmp/linux.img /root/source_mount_point/

mount /dev/sdb1 /root/dest_mount_point/

4 clone deployed linux

tar cf — -C /root/source_mount_point . | tar xvf — -C /root/dest_mount_point/

5 umount source and destination

6 change setting in «linux Deploy»

Installation path:

/dev/block/mmcblk1p1

7 start and connect with ConnectBot

Рубрика: admin, кпк, кпк, linux | Оставить комментарий

root xiaomi redmi note 3 pro (miui 8 dev, android 6)

o phone must have unlocked bootloader

1 download and install (my os win10)

http://download.clockworkmod.com/test/UniversalAdbDriverSetup.msi

2 download and unzip to c:

FLASHER TOOLKIT V1-00.zip

3 copy to phone  UPDATE-SuperSU-v2.65-20151226141550.zip

4 enter in fastboot mode (vol- + power)

5 install supersu

6 check root

NB can be unrooted by SuperSU form GUI

Рубрика: admin, кпк, кпк | Оставить комментарий

manual mount sdcard in android

By example:

mount -t vfat /dev/block/vold/public\:179,65 /storage/3FE7-1BEC/

As result:

#df

/mnt/media_rw/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/default/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/read/3FE7-1BEC    29.7G     2.4M    29.7G   32768
/mnt/runtime/write/3FE7-1BEC    29.7G     2.4M    29.7G   32768

..

/storage/3FE7-1BEC      29.7G     2.4M    29.7G   32768

….

 

#mount

….

/dev/block/vold/public:179,65 /mnt/media_rw/3FE7-1BEC vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

….

/dev/fuse /storage/3FE7-1BEC fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0

….

Рубрика: кпк | Оставить комментарий

xiaomi redmi note 3 pro: unlock bootloader and flash (developer global)

1 register for request for unlock here http://en.miui.com/unlock/

2 wait approve (sms) (3 days for me)

3 download MiFlashUnlock here http://en.miui.com/unlock/download_en.html

4 note for Kedasoft USB problem (at win 10) like here http://en.miui.com/thread-202290-1-1.html

5 unlock (if needed)

I Have ‘no need to unlock this devise’ message

6 optionally check unlock state by

fastboot oem device-info

like thise http://4pda.ru/forum/index.php?showtopic=721838&st=1780#entry49082400

7 Flash with Fastboot method like this http://en.miui.com/a-234.html

unlock2WAIT

screenshot_2017-01-01-19-43-57-419_com-android-updater

Рубрика: admin, кпк | Оставить комментарий

choco v0.10 remote install w/Proxy

1 get remote PS

b.e. with msf psxec set PAYLOAD windows/powershell_bind_tcp

2 install choco

2.1 Set-ExecutionPolicy RemoteSigned

2.2 set system-wide proxy host and port (with CMD either with PS)

2.3 install .net framework 4 (TODO install by script)

$env:chocolateyProxyLocation = 'https://local/proxy/server'
$env:chocolateyProxyUser = 'username'
$env:chocolateyProxyPassword = 'password'
install.ps

2.4 REBOOT

3 install soft

choco config set proxy http://localhost:8888
choco config set proxyUser username
choco config set proxyPassword password

cinst filezilla -y

 LINKS
https://chocolatey.org/docs/installation
https://chocolatey.org/docs/proxy-settings-for-chocolatey

Рубрика: admin, windows | Оставить комментарий