Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#10369 closed Bugs (fixed)

Using boost in cu file compiled with nvcc and icc as host compiler fails.

Reported by: Jiri Kraus <jkraus@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost 1.55.0 Severity: Problem
Keywords: Cc:

Description

Compiling the attached reproducer with nvcc and icc as host compiler fails with an error:

$ make nvcc -ccbin icc -arch=sm_20 -I/shared/apps/rhel-6.2/libs/boost-1.55/include -o test test.cu /shared/apps/rhel-6.2/libs/boost-1.55/include/boost/config/suffix.hpp(496): error: identifier "int128" is undefined

/shared/apps/rhel-6.2/libs/boost-1.55/include/boost/config/suffix.hpp(497): error: expected a ";"

2 errors detected in the compilation of "/tmp/tmpxft_000077b7_00000000-8_test.cpp1.ii". make: * [test] Error 2

This also happens with other components of boost assert was chosen to create a minimal reproducer.

Attachments (2)

test.cu (73 bytes ) - added by Jiri Kraus <jkraus@…> 8 years ago.
Reproducer
Makefile (126 bytes ) - added by Jiri Kraus <jkraus@…> 8 years ago.
Reproducer

Download all attachments as: .zip

Change History (5)

by Jiri Kraus <jkraus@…>, 8 years ago

Attachment: test.cu added

Reproducer

by Jiri Kraus <jkraus@…>, 8 years ago

Attachment: Makefile added

Reproducer

comment:1 by Antony Polukhin, 8 years ago

Component: Noneconfig
Owner: set to John Maddock

comment:2 by John Maddock, 8 years ago

Resolution: fixed
Status: newclosed

comment:3 by anonymous, 8 years ago

Thanks for the quick fix. Jiri

Note: See TracTickets for help on using tickets.