Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Definition of LOG4CPLUS_CALLER_* does not compile with NVCC in CUDACC mode #375

Copy link
Copy link
Closed
@dubvulture

Description

@dubvulture
Issue body actions

If I'm correct since version 1.1/1.2 there has been the introduction of LOG4CPLUS_CALLER_FILE, LOG4CPLUS_CALLER_LINE and LOG4CPLUS_CALLER_FUNCTION replacing the standard preprocessor macros __FILE__, __LINE__ and __FUNCTION__.

What I find strange is that their current definition relies on gcc>=4.8 and its builtin functions (which should return the same thing afaik).

Is there any motivation behind this?

I'm asking this because including log4cplus inside .cu files and compiling with nvcc (8.0.33) + gcc>=4.8 as host compiler leads to undefined __builtin_* identifiers

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.