Archive for November, 2008

*BOOM*

Monday, November 24th, 2008

I’ve been a home-brewer for I suppose a year and a 1/2 now. (My friend John got me interested several years ago in AL) And I made another batch last night. Here’s the recipe:

  • 1 can Cooper’s Stout extract
  • 6 lbs DME
  • 2 tsp premium vanilla extract
  • 1 lbs uncooked oats
  • small handful of 88% cocoa bitter chocolate

On a side note, some people look down pretty hard on those of us who use the canned extracts, but they taste great to me. And they’re easy to work with, you get a consistent flavor, etc. Maybe years from now I’ll laugh at my current naiveté while cooking over a $200 10-gallon stainless steel mash pot next to a $500 immersion chiller, but I currently suspect that will be more post-hoc expense rationalization and less about the actual flavor of the beer.

But anyway, 6 lbs of dried malt is a lot. My last batch was 4.5 lbs. Usually 3 is used, if making an all-malt batch and you want 6% ABV, or 1.5 if you’re making an 50% batch (malt+dextrose) The 4.5 batch bubbled over out of the fermenter and all over the floor, which I had forgotten. So my surprise was pure stupidity seeing the same this morning.

So I cleaned it all up, mopped, and marveled at the non-trivial breeze coming from the air-lock at the top of the bucket. (not to mention that amazingly delicious yeast-orgy smell) And then sat down to call around for a new clutch for my washing machine. (I didn’t even know they had clutches until last night…another story) I was on hold for what seemed like forever waiting for someone to check their stock, when *BOOM*. I run into the kitchen, and beer is everywhere. Walls, floors, papers, you name it. The air lock had gotten plugged, and the carbon dioxide buildup had blown the lid of the fermenter clear across the room. Fuck.

So I cleaned up again. :)

Fortunately I was here and could re-sanitize the lid and get it back on before it was spoiled. And it’s still bubbling away like no tomorrow. I guess we’ll find out how it tastes in another 2 months or so…

Installing PyCUDA on Ubuntu 8.10

Tuesday, November 18th, 2008

I had to spend a bit of time working out the install procedure for PyCUDA on Ubuntu 8.10. So I thought I’d share…

cd downloads/

Install the CUDA toolkit. Ubuntu already comes with the 177.80 NVidia driver, so I didn’t install v177.73.

# install CUDA
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/driver/NVIDIA-Linux-x86_64-177.73-pkg2.run
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/toolkit/NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86_64.run
wget http://developer.download.nvidia.com/compute/cuda/2_0/linux/sdk/NVIDIA_CUDA_SDK_2.02.0807.1535_linux.run
chmod +x *.run
sudo ./NVIDIA_CUDA_Toolkit_2.0_ubuntu7.10_x86_64.run
# accepted default install location: /usr/local/cuda
su -
echo "include /usr/local/cuda/lib" >> /etc/ld.so.conf.d/cuda.conf
ldconfig
cd /usr/bin/
ln -s /usr/local/cuda/open64/bin/* .
exit

Install Boost libs, v1.35.

sudo apt-get install libboost-python1.35-dev

Install PyCUDA.

wget http://pypi.python.org/packages/source/p/pycuda/pycuda-0.91.tar.gz#md5=339dac0641cc5da2f5c153d134592ed3
tar -zxvf pycuda-0.91.tar.gz
cd pycuda-0.91/
./configure

Edit siteconf.py to look like this…

BOOST_INC_DIR = ['/usr/include/boost/']
BOOST_LIB_DIR = ['/usr/lib']
BOOST_PYTHON_LIBNAME = ['boost_python-mt-py25']
CUDA_ROOT = '/usr/local/cuda/'
CUDADRV_LIB_DIR = []
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = []
LDFLAGS = []

Then take her home…

python setup.py build
sudo make install

Now to test:

#export C_INCLUDE_PATH=/usr/local/cuda/include/
#export CPLUS_INCLUDE_PATH=/usr/local/cuda/include/
export PATH=$PATH:/usr/local/cuda/bin/
cd test
python test_driver.py

The tests run successfully for me, sans test_mempool (__main__.TestCuda). I’ll update this as I find out more.


<Kered.org>   © Copyright 2000-2005 by Derek Anderson
Get Firefox