Opened 8 years ago

Closed 8 years ago

#10625 closed Bugs (fixed)

Compilation with nvcc produces error: unknown asm constraint modifier ','

Reported by: Mikhail Farkov <mihail.fakov@…> Owned by: timblechmann
Milestone: To Be Determined Component: atomic
Version: Boost 1.55.0 Severity: Problem
Keywords: nvcc Cc:

Description

Compilation produces a lot of errors and warning: Example: .../atomic/detail/gcc-x86.hpp(1286): error: unknown asm constraint modifier ','

Version of boost: 1.55

Code:

//std
#include <iostream>
#include <exception>

//boost
#include "boost/thread.hpp"

int main(int argc,char **argv)
{
	return 0;
}

Compiler parametes:

nvcc test.cu -o test -O3 -arch=sm_30 -I. -I/usr/local/cuda/include -I/usr/local/boost/include -L/usr/local/cuda/lib64 -L/usr/local/boost/lib/

Attachments (1)

nvcc_out.txt (6.2 KB ) - added by Mikhail Farkov <mihail.fakov@…> 8 years ago.

Download all attachments as: .zip

Change History (2)

by Mikhail Farkov <mihail.fakov@…>, 8 years ago

Attachment: nvcc_out.txt added

comment:1 by Andrey Semashev, 8 years ago

Resolution: fixed
Status: newclosed

Boost.Atomic has been largely rewritten since 1.55, but I added some workarounds to the code that is similar to 1.55 (see https://github.com/boostorg/atomic/commit/fcff86225ec6494f45868cb1a5a95f5ed3275764). I don't have nvcc to test, so I'm not sure the new code compiles and works with it. I'm closing the ticket for now - feel free to reopen it if the latest code still doesn't work.

Note: See TracTickets for help on using tickets.