PyCUDA on Mac OS X El Capitan

PyCUDA doesn’t seem to build on El Capitan:

ld: file not found: @rpath/CUDA.framework/Versions/A/CUDA for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Here’s how I fixed it:

tar -xzvf pycuda-2015.1.3.tar.gz
cd pycuda-2015.1.3
python --cuda-root=/usr/local/cuda --ldflags="-F/Library/Frameworks -framework CUDA" --cxxflags="-arch x86_64"
sudo make install

Chibios Board Generator

Producing board files for a new board to use with ChibiOS can be a cumbersome process. ChibiStudio features an Eclipse plugin that makes this process much easier.

Firstly Install Eclipse CDT.

Manual Eclipse plugin install

Windows users can use ChibiStudio which has these plugins installed by default, but it is also possible to manually install the plugin on Eclipse running on Linux/Mac.

In Eclipse go to Help > Install New Software. Add a new repository:


Then install the Chibios plugin for Eclipse



Also install the XML editor to allow editing of the board config file


Board config editing + generation

Create a folder for the board with a subfolder called cfg/. Copy a sample .chcfg board file from a similar board from the ChibiOS boards directory to use as the base.

Open the .chcfg board file in Eclipse (make sure it opens with the XML editor) and make the necessary changes. Some aspects of modifying the board such as setting pin names are easier to perform using a text editor, but the XML editor is handy for setting pin functions:

Screen Shot 2014-05-10 at 19.37.05

To generate the board files select the .chcfg file in the browser and click the following button in the toolbar:

Screen Shot 2014-05-10 at 19.34.08

The console should display something like this:

Screen Shot 2014-05-10 at 19.36.38

Job done!