#--@STCGoal Create Gist really quickly when experimenting
##--@STCIssue Why creating Gist when Experimenting ?
Well, what else ??
Docker Desktop WSL 2 backend is not supported yet with GPUs. You will have to install Docker as you would traditionally in Linux for WSL 2 and then install NVIDIA Container Toolkit (or nvidia-docker2) for now. nvidia-container-toolkit and nvidia-docker2 in the end are just wrappers. There is a slight variation depending on which version of Docker you use (19.03 vs. 18.09), but if you chose to install nvidia-docker2, then that works across both releases of Docker. I’ll look into making that more clear in the documentation. nvidia-smi does not work because we don’t support NVML in WSL 2 yet - this is part of the Known Limitations in the user-guide. We will be adding support for it in the near future. >https://forums.developer.nvidia.com/t/hiccups-setting-up-wsl2-cuda/128641
| #!/bin/env bash | |
| pip3 install IPython | |
| pip3 install matplotlib |
| //Lire un fichier et imprimer son contenu | |
| var fs = require('fs'); | |
| fs.readFile('README.md', 'utf8', function(err, contents) { | |
| console.log(contents); | |
| //contents object has the data | |
| }); |
| #!/bin/bash | |
| export rendercmd="/opt/hfs18.0/bin/hbatch-bin" | |
| export end_cmd=";quit"; | |
| cd ~/nad.previz/x/x__for_fun__191122 | |
| #volcano_smoke_column.hiplc |
| version: 2 | |
| jobs: | |
| build: | |
| docker: | |
| - image: circleci/node:10.0.0 | |
| steps: | |
| - checkout | |
| """ | |
| A simple script to kick off a certain ROP remotely, optionally | |
| with a given framerange. | |
| Usage: hython path/to/script/houBatch.py /path/to/hipfile /hou/path/to/rop | |
| TODO: Add options for multiple ROPs, hperf. | |
| """ | |
| import hou, sys |
| # credentials - How to save username and password in GIT? - Stack Overflow | |
| #Run : | |
| git config credential.helper store | |
| #then | |
| git pull | |
| #@STCGoal Count files in the current dir | |
| alias countfiles="du -a . | wc -l" | |