Skip to content

[BUG] Error when building MatX on Linux.  #669

@HugoPhibbs

Description

@HugoPhibbs

Describe the Bug
I followed the given instructions to install MatX

To Reproduce
Steps to reproduce the behavior:

I ran (it fails on the make line):

cmake -DMATX_BUILD_TESTS=OFF -DMATX_BUILD_BENCHMARKS=ON -DMATX_BUILD_EXAMPLES=ON -DMATX_BUILD_DOCS=OFF ..
make -j 

Expected Behavior
Build with no errors

Code Snippets
I get the error:`

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(349): error: initializer not allowed for __shared__ variable 

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(349): error: initializer not allowed for __shared__ variable 

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(349): error: initializer not allowed for __shared__ variable 

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(349): error: initializer not allowed for __shared__ variable 

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(349): error: initializer not allowed for __shared__ variable 

/home/hphi344/Documents/MatX/include/matx/kernels/channelize_poly.cuh(64): error: initializer not allowed for __shared__ variable 

6 errors detected in the compilation of "/home/hphi344/Documents/MatX/examples/channelize_poly_bench.cu".
make[2]: *** [examples/CMakeFiles/channelize_poly_bench.dir/build.make:77: examples/CMakeFiles/channelize_poly_bench.dir/channelize_poly_bench.cu.o] Error 255
make[1]: *** [CMakeFiles/Makefile2:333: examples/CMakeFiles/channelize_poly_bench.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
^Cnvcc: nvcc: InterruptInterrupt

nvcc: Interrupt
nvcc: Interrupt
nvcc: Interrupt
make[2]: *** Deleting file 'bench/CMakeFiles/matx_bench.dir/00_transform/qr.cu.o'
make[2]: *** [bench/CMakeFiles/matx_bench.dir/build.make:122: bench/CMakeFiles/matx_bench.dir/00_transform/cub.cu.o] Interrupt
make[2]: *** [bench/CMakeFiles/matx_bench.dir/build.make:197: bench/CMakeFiles/matx_bench.dir/00_operators/reduction.cu.o] Interrupt
make[2]: *** [bench/CMakeFiles/matx_bench.dir/build.make:167: bench/CMakeFiles/matx_bench.dir/00_transform/qr.cu.o] Interrupt
make[2]: *** [bench/CMakeFiles/matx_bench.dir/build.make:152: bench/CMakeFiles/matx_bench.dir/00_transform/svd_power.cu.o] Interrupt
make[2]: *** [bench/CMakeFiles/matx_bench.dir/build.make:107: bench/CMakeFiles/matx_bench.dir/00_transform/conv.cu.o] Interrupt
make[1]: *** [CMakeFiles/Makefile2:935: bench/CMakeFiles/matx_bench.dir/all] Interrupt
make: *** [Makefile:136: all] Interrupt

System Details (please complete the following information):

  • OS: Ubuntu 20.04
  • CUDA version: Cuda 11.6
  • g++ version: 9.4.0

Additional Context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions