This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [project] | |
| name = "my-rocm-project" | |
| version = "0.1.0" | |
| requires-python = ">=3.12" | |
| dependencies = [ | |
| # Mirrors the official ROCm-docs install line. The [device-gfx1200] extras are | |
| # MANDATORY: bare torch omits the amd-torch-device-gfx1200 GPU-kernel packages, | |
| # and `uv sync` will UNINSTALL them (substitute your arch: gfx1100, gfx1030, ...). | |
| "rocm[libraries,device-gfx1200]==7.14.0", | |
| "torch[device-gfx1200]==2.12.0+rocm7.14.0", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Spin up a quick shell with network-utils. | |
| ```k run tmp-shell --rm -i --tty --image amouat/network-utils -- /bin/bash``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Non-align | |
| def foo | |
| some_function(true, { :before => 1, | |
| :after => 2 }) | |
| end | |
| def bar | |
| case @var | |
| when 1 | |
| print 'a' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # chkconfig: 345 20 80 | |
| # description: Play start/shutdown script | |
| # processname: play | |
| # | |
| # Instalation: | |
| # copy file to /etc/init.d | |
| # chmod +x /etc/init.d/play | |
| # chkconfig --add /etc/init.d/play | |
| # chkconfig play on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! A simplistic echo server that allows client to exit using the quit command. | |
| //! Based on various examples and sources from the internet. | |
| #[crate_id = "echo:0.1pre"]; | |
| use std::io::{Listener, Acceptor, BufferedStream}; | |
| use std::io::net::tcp::TcpListener; | |
| use std::io::net::ip::{SocketAddr, Ipv4Addr}; | |
| //FIXME: In general, need more error handling. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! A simplistic echo server that allows client to exit using the quit command. | |
| #![crate_id = "echo:0.1pre"] | |
| #![feature(phase)] | |
| #[phase(plugin, link)] extern crate log; | |
| use std::io::{Listener, Acceptor, BufferedStream}; | |
| use std::io::net::tcp::TcpListener; |