I get problems when running the test code above,the detail descriptions is below:
WARNING: Install simplejson for better performance
WARNING: Install simplejson for better performance
WARNING: Install simplejson for better performance
Building pipeline
ring_impl.cpp:105 Condition failed: space==BF_SPACE_SYSTEM
ring_impl.cpp:105 error 10: BF_STATUS_INVALID_ARGUMENT
ring.cpp:41 error 10: BF_STATUS_INVALID_ARGUMENT
Traceback (most recent call last):
File "../test.py", line 11, in
bc.blocks.copy(space='cuda', core=1)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/block_chainer.py", line 66, in wrapper
self.last_block = func(self.last_block, *args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/blocks/copy.py", line 70, in copy
return CopyBlock(iring, space, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/blocks/copy.py", line 40, in init
self.orings = [self.create_ring(space=space)]
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/pipeline.py", line 341, in create_ring
return Ring(args, owner=self, kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/ring2.py", line 88, in init
name, _string2space(self.space))
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost.py", line 47, in init
_check(constructor(ctypes.byref(self.obj), *args))
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost.py", line 103, in _check
raise RuntimeError(status_str)
RuntimeError: BF_STATUS_INVALID_ARGUMENT
Could you tell me what's happened,and how can i fix this problem?Thank you !
`import bifrost as bf import sys
filenames = sys.argv[1:] f_avg = 4 n_int = 8
print "Building pipeline" bc = bf.BlockChainer() bc.blocks.read_guppi_raw(filenames, core=0) bc.blocks.copy(space='cuda', core=1) with bf.block_scope(fuse=True, gpu=0): bc.blocks.transpose(['time', 'pol', 'freq', 'fine_time']) bc.blocks.fft(axes='fine_time', axis_labels='fine_freq', apply_fftshift=True) bc.blocks.detect('stokes') bc.views.merge_axes('freq', 'fine_freq') bc.blocks.reduce('freq', f_avg) bc.blocks.accumulate(n_int) bc.blocks.copy(space='cuda_host', core=2) bc.blocks.write_sigproc(core=3)
pipeline = bf.get_default_pipeline() print pipeline.dot_graph() print "Running pipeline" pipeline.shutdown_on_signals() pipeline.run() print "All done"`
I get problems when running the test code above,the detail descriptions is below: WARNING: Install simplejson for better performance WARNING: Install simplejson for better performance WARNING: Install simplejson for better performance Building pipeline ring_impl.cpp:105 Condition failed: space==BF_SPACE_SYSTEM ring_impl.cpp:105 error 10: BF_STATUS_INVALID_ARGUMENT ring.cpp:41 error 10: BF_STATUS_INVALID_ARGUMENT Traceback (most recent call last): File "../test.py", line 11, in
bc.blocks.copy(space='cuda', core=1)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/block_chainer.py", line 66, in wrapper
self.last_block = func(self.last_block, *args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/blocks/copy.py", line 70, in copy
return CopyBlock(iring, space, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/blocks/copy.py", line 40, in init
self.orings = [self.create_ring(space=space)]
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/pipeline.py", line 341, in create_ring
return Ring(args, owner=self, kwargs)
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/ring2.py", line 88, in init
name, _string2space(self.space))
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost.py", line 47, in init
_check(constructor(ctypes.byref(self.obj), *args))
File "/usr/local/lib/python2.7/dist-packages/bifrost-0.8.0-py2.7.egg/bifrost/libbifrost.py", line 103, in _check
raise RuntimeError(status_str)
RuntimeError: BF_STATUS_INVALID_ARGUMENT
Could you tell me what's happened,and how can i fix this problem?Thank you !