tjlane/odin — pull request #1 by rmcgibbo (2012-11-10 23:00:37+00:00)
Title: trying to get it to compile. template seems to be the issue

@tjlane don't actually merge this, but take a look at the diff.

this one compiles (pretty much)

```
$ python setup.py install
gpu_mgr.hh:60: Warning(490): Fragment 'NumPy_Backward_Compatibility' not found.
gpu_mgr.hh:60: Warning(490): Fragment 'NumPy_Backward_Compatibility' not found.
gpu_mgr.hh:60: Warning(490): Fragment 'NumPy_Backward_Compatibility' not found.
running install
running bdist_egg
running egg_info
writing gpuscatter.egg-info/PKG-INFO
writing top-level names to gpuscatter.egg-info/top_level.txt
writing dependency_links to gpuscatter.egg-info/dependency_links.txt
reading manifest file 'gpuscatter.egg-info/SOURCES.txt'
writing manifest file 'gpuscatter.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying ./gpuscatter.py -> build/lib.linux-x86_64-2.7
running build_ext
building 'this_name_is_irrelevant' extension
_compile build/temp.linux-x86_64-2.7/gpu_mgr.o gpu_mgr.cu .cu ['-I/usr/local/cuda/include', '-I.', '-c'] ['-arch=sm_20', '--ptxas-options=-v', '-c', '--compiler-options', "'-fPIC'"] ['-I/usr/local/cuda/include', '-I.']
nvcc -I/usr/local/cuda/include -I. -c gpu_mgr.cu -o build/temp.linux-x86_64-2.7/gpu_mgr.o -arch=sm_20 --ptxas-options=-v -c --compiler-options '-fPIC'
ptxas info : Compiling entry function '_Z6kernelPKfS0_S0_PfiS0_S0_S0_PKiiS0_S0_S0_' for 'sm_20'
ptxas info : Function properties for _Z6kernelPKfS0_S0_PfiS0_S0_S0_PKiiS0_S0_S0_
32 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 34 registers, 2048+0 bytes smem, 136 bytes cmem[0], 24 bytes cmem[2], 84 bytes cmem[16]
ptxas info : Compiling entry function '_Z8randTestPf' for 'sm_20'
ptxas info : Function properties for _Z8randTestPf
0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads
ptxas info : Used 8 registers, 40 bytes cmem[0], 24 bytes cmem[2]
echo build/temp.linux-x86_64-2.7/gpu_mgr.o -lpython2.7 -o build/lib.linux-x86_64-2.7/this_name_is_irrelevant.so
build/temp.linux-x86_64-2.7/gpu_mgr.o -lpython2.7 -o build/lib.linux-x86_64-2.7/this_name_is_irrelevant.so
Traceback (most recent call last):
File "setup.py", line 120, in
zip_safe=False,
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/setuptools/command/install.py", line 73, in run
self.do_egg_install()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/setuptools/command/install.py", line 93, in do_egg_install
self.run_command('bdist_egg')
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 179, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/setuptools/command/bdist_egg.py", line 166, in call_command
self.run_command(cmdname)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 20, in run
self.build()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/command/install_lib.py", line 111, in build
self.run_command('build_ext')
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "setup.py", line 78, in build_extensions
build_ext.build_extensions(self)
File "/home/robert/epd-7.3-2-rh5-x86_64/lib/python2.7/distutils/command/build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "setup.py", line 99, in build_extension
raise RuntimeError("glob_extra_link_args didn't match any files")
RuntimeError: glob_extra_link_args didn't match any files
```