bugGNU Octave - Bugs: bug #64249, Segment fault while integrating...

 
 

bug #64249: Segment fault while integrating clBlast lib to an Octave package

Submitter:  None
Submitted:  Thu 25 May 2023 09:58:40 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 8.2.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 27 May 2023 01:48:26 PM UTC, comment #2: 

IIUC, this was caused by an issue in clBlast and it's not a bug in Octave.

Closing as invalid

Markus Mützel <mmuetzel>
Group administrator
Sat 27 May 2023 12:08:56 PM UTC, comment #1: 

Dear manager,
I have located the problem and reported in CLBlast. Please mark this bug as solved.

Thank you very much!

Best wishes,
Jinchuan Tang

Jinchuan Tang <jinchuantang>
Thu 25 May 2023 09:58:40 AM UTC, original submission:  

Dear Octave Dev team,

I was trying to integrating clBlast library to an Octave package named Octave-ocl. By doing this, I am hoping that I could bring the GPU speed up on GEMM to Octave. I adapted an SGEMM example to the original Octave-ocl package, and add the library to the makefile (-L/home/tjc/Downloads/CLBlast-master/build -lclblast). But every time I execute the corresponding command on Octave after installation, I encountered segment fault on OpenSUSE. (
fatal: caught signal Segmentation fault -- stopping myself...
Segmentation fault (core dumped)) In the meantime, I tried the similar step in Windows, it also fails.

Is there something wrong with my adding commands (-L/home/tjc/Downloads/CLBlast-master/build -lclblast) in the makefile for an Octave package?

I tried to use verbose mode with clBlast, and there was no errors before segmentation errors (https://github.com/CNugteren/CLBlast/issues/478).

Best wishes,
Jinchuan


TARGET = ocl_b1n.oct

M_FILES = \
  oclArray.m \
  ocl_to_octave.m \
  gpuArray.m \
  gather.m \
  ocl_program_file.m \
  ocl_tests.m

OBJ_FILES = \
  ocl_constant.o \
  ocl_lib.o \
  ocl_context.o \
  ocl_context_obj.o \
  ocl_program.o \
  ocl_memobj.o \
  ocl_array.o \
  ocl_array_prog.o \
  ocl_ov_matrix.o \
  ocl_ov_matrix_ops.o \
  ocl_ov_matrix_fcns.o \
  ocl_ov_program.o \
  ocl_ov_types.o \
  genFFT.o \
  fftCore.o \
  transform.o \
  accessors.o \
  plan.o \
  repo.o \
  generator_stockham.o \
  generator_transpose_gcn.o \
  generator_transpose.o \
  action_transpose.o \
  generator_copy.o \
  lifetime.o \
  fft_binary_lookup.o \
  md5sum.o \
  enqueue.o \
  stdafx.o

C_FILES = $(OBJ_FILES:.o=.cc)

CC = $(MKOCTFILE)
LD = $(MKOCTFILE)

# main target

$(TARGET): $(OBJ_FILES)
$(LD) $(OBJ_FILES) -L/home/tjc/Downloads/CLBlast-master/build -lclblast -o $(TARGET)

.SUFFIXES=
.SUFFIXES= .cc .o

.cc.o:
$(CC)  -pipe -c -std=gnu++11 $<

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by jinchuantang (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-27 mmuetzel StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code