Opened 13 years ago

Closed 13 years ago

#3919 closed Patches (fixed)

Support for NVIDIA CUDA C++ Compiler

Reported by: joel.falcou@… Owned by: John Maddock
Milestone: Boost 1.43.0 Component: config
Version: Boost 1.42.0 Severity: Problem
Keywords: GPU NVIDIA nvcc CUDA Cc:

Description

Some boost component can't compile when compiled with the nvidia c++ compiler for GPU systems. This patch add nvcc as a proper compiler in config/ so the proper BOOST_NO_XXX macro are set/unset. The patch also provide a BOOST_GPU_ENABLED macro that resolves as host device and allow any boost function to be compiled inside a CUDA kernel.

Note that this patch is not the only one required for proper GPU support bu tit fixes a lot of annoying errors in low level components like MPL, Fusion, type_traits and similar.

Attachments (3)

nvcc.hpp (2.8 KB ) - added by joel.falcou@… 13 years ago.
NVCC specific compiler setup
select_compiler_config.hpp (3.8 KB ) - added by joel.falcou@… 13 years ago.
select_compiler.hpp including the nvcc.hpp file detection
suffix.hpp (18.7 KB ) - added by joel.falcou@… 13 years ago.
suffix.hpp patched to define BOOST_GPU_ENABLED if not set up before

Download all attachments as: .zip

Change History (4)

by joel.falcou@…, 13 years ago

Attachment: nvcc.hpp added

NVCC specific compiler setup

by joel.falcou@…, 13 years ago

Attachment: select_compiler_config.hpp added

select_compiler.hpp including the nvcc.hpp file detection

by joel.falcou@…, 13 years ago

Attachment: suffix.hpp added

suffix.hpp patched to define BOOST_GPU_ENABLED if not set up before

comment:1 by John Maddock, 13 years ago

Resolution: fixed
Status: newclosed

(In [60076]) Apply patches for nvidia C++ compiler. Fixes #3919.

Note: See TracTickets for help on using tickets.