Skip to content

[CUDA] compilation error: invalid input constraint 'x' in asm #1353

Closed
@cgleggett

Description

@cgleggett

when compiling a simple program with CUDA backend against d9b178f :

/home/leggett/intel/git/build/bin/clang++ -std=c++14 -fsycl -pthread -g -O2 -fsycl-targets=nvptx64-nvidia-cuda-sycldevice -o prog.o -c prog.cpp
clang-11: warning: Unknown CUDA version 10.2. Assuming the latest supported version 10.1 [-Wunknown-cuda-version]
In file included from FindPrimesSYCL.cpp:1:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl.hpp:11:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/accessor.hpp:13:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/buffer.hpp:10:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/detail/buffer_impl.hpp:17:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/handler.hpp:13:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/detail/cg.hpp:17:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/group.hpp:15:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/detail/generic_type_traits.hpp:16:
In file included from /home/leggett/intel/git/build/bin/../include/sycl/CL/sycl/half_type.hpp:15:
In file included from /opt/rh/devtoolset-8/root/usr/lib/gcc/x86_64-redhat-linux/8/../../../../include/c++/8/cmath:45:
In file included from /usr/include/math.h:413:
/usr/include/bits/mathinline.h:131:43: error: invalid input constraint 'x' in asm
  __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x));
                                          ^
/usr/include/bits/mathinline.h:143:43: error: invalid input constraint 'x' in asm
  __asm ("pmovmskb %1, %0" : "=r" (__m) : "x" (__x));
                                          ^
2 errors generated.

Metadata

Metadata

Assignees

Labels

cudaCUDA back-end

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions