RATTLE icon indicating copy to clipboard operation
RATTLE copied to clipboard

Illegal instruction error on RATTLE correct

Open Csam488 opened this issue 3 years ago • 7 comments

I'm experiencing an Illegal instruction error when attempting to run RATTLE correct. The error is consistent when using different fastq files with the only difference being the number of reads reported to be processed (ranges from 30-38). I'm running RATTLE on a HPC system using Intel(R) Xeon(R) E5-2695 v4 CPUs. Can I please get instructions on how to correct this error.

The commands I have used are:

./rattle cluster -i data.fastq -t 4 --iso -o ./ ./rattle extract_clusters -c lusters.out -o ./clusters -i data.fastq --fastq ./rattle correct -c clusters.out -o ./clusters -i data.fastq --verbose

Csam488 avatar Nov 17 '22 21:11 Csam488

Hi,

Does the CPUs support sse4.1? RATTLE sub-module spoa has this error "Illegal instruction (core dumped)" with some old processors.

Eileen

eileen-xue avatar Nov 17 '22 23:11 eileen-xue

Hi Eileen,

The CUPs support both see4.1 and 4.2

Csam488 avatar Nov 18 '22 00:11 Csam488

Hi,

  1. I notice the extract clusters step command is incorrect, it should be -c clusters.out.
  2. Can you run RATTLE with the example dataset correctly?
  3. If it is possible, could you please provide a copy of the output error message report?

Thanks, Eileen

eileen-xue avatar Nov 18 '22 01:11 eileen-xue

Hi,

Apologies, there was a typo introduced when I simplified my file names

The full error (with the verbose option) I'm getting is

Reading fasta file... Done
Illegal instruction                                                              ] 38/6714 (0.565982%)

I get the same error with the example dataset

Reading fasta file... Done
[==Illegal instruction                                                           ] 732/8304 (8.81503%)

Csam488 avatar Nov 18 '22 02:11 Csam488

Hi,

Try to replace spoa/CMakeLists.txt Line 17-21 with the following code

option(spoa_optimize_for_native "Build with -march=native" ON)
option(spoa_optimize_for_portability "Build with -msse4.1" ON)
option(spoa_generate_dispatch "Use SIMDe to generate x86 dispatch" OFF)

if (NOT spoa_generate_dispatch)
  if (spoa_optimize_for_portability)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1")
  elseif (spoa_optimize_for_native)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
  endif ()
endif ()

Eileen

eileen-xue avatar Nov 18 '22 04:11 eileen-xue

Hi Eileen,

I made the changes but it still gives the same error with the example dataset

Csam488 avatar Nov 21 '22 21:11 Csam488

Hi,

What operation system and version you are using?

And try to remove the previous version and reinstall RATTLE with the following command

cd RATTLE
make clean
./build.sh

Eileen

eileen-xue avatar Nov 22 '22 01:11 eileen-xue