I am working under
$ uname -a
Linux islay 4.4.0-kfd-compute-rocm-rel-1.1.1-10 #1 SMP Mon May 30 15:27:31 CDT 2016 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
and compiled the example hcfft_1D_R2C.cpp with
/opt/rocm/hcc/bin/clang++ -hc -std=c++amp -stdlib=libc++ -I/opt/rocm/hcc-lc/include -I/home/steinbac/software/hcfft/master/include -hc -std=c++amp -L/opt/rocm/hcc-lc/lib -Wl,--rpath=/opt/rocm/hcc-lc/lib -lc++ -lc++abi -ldl -lpthread -Wl,--whole-archive -lmcwamp -Wl,--no-whole-archive -L/home/steinbac/software/hcfft/master/lib -g -lhc_am -lhcfft -o hcfft_1D_R2C hcfft_1D_R2C.cpp
I receive a segfault and the rocm-gdb stack trace of it looks like this:
#0 0x00002aaaac558a0f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00002aaaab8a985b in FFTPlan::hcfftEnqueueTransformInternal(unsigned long, hcfftDirection_, float*, float*, float*) () from /home/steinbac/software/hcfft/master/lib/libhcfft.so
#2 0x00002aaaab89e261 in FFTPlan::hcfftEnqueueTransform(unsigned long, hcfftDirection_, float*, float*, float*) () from /home/steinbac/software/hcfft/master/lib/libhcfft.so
#3 0x00002aaaab858182 in hcfftExecR2C(unsigned long, float*, hc::short_vector::float_2*) () from /home/steinbac/software/hcfft/master/lib/libhcfft.so
#4 0x00000000004050eb in main (argc=1, argv=0x7fffffffdf48) at hcfft_1D_R2C.cpp:32
which occurs when hcfftExecR2C is called. Is a 1024-sized signal not supported yet? What am I missing?
Have created a Jira ticket for this Will try reproducing this and get back
One thing is we are using ROCM 1.0 and hcc-hsail backend rather than the default hcc (LC backend).