Skip to content

Commit e897daa

Browse files
authored
Merge pull request #196 from fredroy/fix_cuda_gcc_namespace
[CUDA] Fix compilation with GCC
2 parents 74a7e78 + 298c3a5 commit e897daa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

extensions/CUDA/src/BeamAdapter/CUDA/CudaInstantiations.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
using namespace sofa::gpu::cuda;
4444

45-
namespace beamadapter::cuda
45+
namespace beamadapter
4646
{
4747
// template class SOFA_BEAMADAPTER_CUDA_API BeamInterpolation<CudaRigid3fTypes>;
4848
// template class SOFA_BEAMADAPTER_CUDA_API WireBeamInterpolation<CudaRigid3fTypes>;
@@ -67,7 +67,8 @@ namespace beamadapter::cuda
6767
#endif
6868

6969
using namespace sofa::gpu::cuda;
70-
70+
namespace cuda
71+
{
7172
void registerBeamAdapterCUDAComponents(sofa::core::ObjectFactory* factory)
7273
{
7374
#ifdef SOFA_GPU_CUDA_DOUBLE
@@ -146,4 +147,6 @@ void registerBeamAdapterCUDAComponents(sofa::core::ObjectFactory* factory)
146147
);
147148
}
148149

150+
} // namespace cuda
151+
149152
} // namespace beamadapter

0 commit comments

Comments
 (0)