This file contains 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
#!/usr/bin/env python | |
""" | |
Demo of how to pass GPU memory managed by pycuda to mpi4py. | |
Notes | |
----- | |
This code can be used to perform peer-to-peer communication of data via | |
NVIDIA's GPUDirect technology if mpi4py has been built against a | |
CUDA-enabled MPI implementation. |
This file contains 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
use futures::{Async, Future, Poll}; | |
use tokio::io::{AsyncRead, AsyncWrite, Error, ReadHalf, WriteHalf}; | |
use tokio::net::TcpStream; | |
use warp::{path, Filter, Stream}; | |
struct Receiver { | |
rx: ReadHalf<TcpStream>, | |
} | |
impl Stream for Receiver { | |
type Item = String; |
This file contains 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 | |
#Federico Ponzi | |
#doylefermi | |
#chocolatkey | |
# GPLv2 | |
usage() | |
{ | |
echo "Usage: $0 [-all][-list][-i] xxx.xxx.xxx.xxx" | |
} |
This file contains 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
# To pull the image | |
docker pull funkyboy/baasbox:0.9.2 | |
# To run | |
docker run -d -p 9000:9000 -v /folder/on/host/machine:/baasbox/db funkyboy/baasbox:0.9.2 |
NewerOlder