This file contains hidden or 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
import pycuda.driver as cuda | |
import pycuda.autoinit | |
from pycuda.compiler import SourceModule | |
import numpy as np | |
def compute_xcorr_cpu(d): | |
dc = d.astype('float32').view('complex64') | |
dc = dc.transpose((0,2,3,1)).copy() | |
xcorr_cpu = np.einsum('...i,...j', dc, np.conj(dc)).view('float32').astype('int32').sum(axis=-4) | |
return xcorr_cpu |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
from utmost2d_snap import UtmostSnap | |
from rpi_bf_control import RpiBeamformerController | |
import time | |
from multiprocessing import JoinableQueue | |
from threading import Thread | |
class BoardManager(object): | |
""" Base class for multithreaded control of multiple boards | |
OlderNewer