Skip to content

How can I install this library on a computer with only CPU? #51

@zhong-yy

Description

@zhong-yy

The following error occurred when I ran python setup.py build_ext

/bin/sh: 1: nvcc: not found
make: *** [Makefile:49: fast_matched_filter/lib/matched_filter_GPU.so] Error 127
Could not build GPU code

I was able to install using pip install git+https://github.com/beridel/fast_matched_filter. However, when I run import fast_matched_filter as fmf, the following error occurs,

Matched-filter CPU is not compiled! Should be here: [/miniconda3/envs/my_env/lib/python3.10/site-packages/fast_matched_filter/lib/matched_filter_CPU.so]
Matched-filter GPU is not compiled! Should be here: [/miniconda3/envs/my_env/lib/python3.10/site-packages/fast_matched_filter/lib/matched_filter_GPU.so]

I think I've found the solution. ls ~/miniconda3/envs/my_env/lib/python3.10/site-packages/fast_matched_filter/ showed that there was not a lib directory there. Then, I ran make python_cpu, and mv the so library to the directory of my conda environment:
mv fast_matched_filter/lib ~/miniconda3/envs/my_env/lib/python3.10/site-packages/fast_matched_filter/lib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions