[Paraview] Building Piston

Huebl, Axel a.huebl at hzdr.de
Wed Jul 16 05:28:06 EDT 2014


Hi,

looking at the piston code [1] in piston/piston_math.h that looks like a
thrust-related problem to me.

```
  #if THRUST_DEVICE_BACKEND == THRUST_DEVICE_BACKEND_CUDA

  #include "cuda_runtime.h"

  #else

  #include <thrust/detail/config.h>


  typedef struct float3
  // ...
```

Checking Piston's `CMakeLists.txt` it looks like it might be necessary
to set -DUSE_CUDA=ON or -DTHRUST_DIR=... with cmake?

The sm_10 warnings could be avoided by specifying the target platform.


Best,
Axel

[1] https://github.com/losalamos/PISTON/blob/master/piston/piston_math.h

On 15.07.2014 00:34, Praveen Narayanan wrote:
> Hi
> 
>  
> 
> I have been trying to build piston from the paraview source (on
> website), and standalone piston from the lanl website.
> 
>  
> 
> I run into this error:
> 
>  
> 
> urces
> 
> [ 32%] Built target vtkRenderingCore
> 
> [ 32%] Built target vtkParseOGLExt
> 
> [ 32%] Built target vtkEncodeString
> 
> [ 32%] Built target vtkEncodeString-launcher
> 
> [ 32%] Built target vtkRenderingOpenGL
> 
> [ 32%] *Building NVCC (Device) object
> VTK/Accelerators/Piston/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vtkPistonThreshold.cu.o*
> 
> nvcc warning : The 'compute_10' and 'sm_10' architectures are
> deprecated, and may be removed in a future release.
> 
> nvcc warning : The 'compute_10' and 'sm_10' architectures are
> deprecated, and may be removed in a future release.
> 
> /home/praveen/projects/paraview/piston_try2/ParaView/VTK/Accelerators/Piston/piston/piston_math.h(13):
> error: invalid redeclaration of type name "float3"
> 
> /usr/local/cuda/include/vector_types.h(394): here
> 
>  
> 
> /home/praveen/projects/paraview/piston_try2/ParaView/VTK/Accelerators/Piston/piston/piston_math.h(18):
> error: invalid redeclaration of type name "float4"
> 
> /usr/local/cuda/include/vector_types.h(395): here
> 
>  
> 
> /home/praveen/projects/paraview/piston_try2/ParaView/VTK/Accelerators/Piston/piston/piston_math.h(23):
> error: invalid redeclaration of type name "uint3"
> 
> /usr/local/cuda/include/vector_types.h(381): here
> 
>  
> 
> /home/praveen/projects/paraview/piston_try2/ParaView/VTK/Accelerators/Piston/piston/piston_math.h(29):
> error: cannot overload functions distinguished by return type alone
> 
>  
> 
> /home/praveen/projects/paraview/piston_try2/ParaView/VTK/Accelerators/Piston/piston/piston_math.h(34):
> error: cannot overload functions distinguished by return type alone
> 
>  
> 
> ….
> 
>  
> 
>  
> 
> Several such errors appear. Float2, float3 etc are cuda specific things,
> so I am not sure what is happening here.
> 
>  
> 
> Ideas?
> 
> Thanks
> 
> Praveen
> 
>  
> 
> Applied Engineer
> 
> NVIDIA
> 
>  
> 
> http://devblogs.nvidia.com/parallelforall/
> 
>  
> 
> ------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential information.  Any unauthorized review, use,
> disclosure or distribution is prohibited.  If you are not the intended
> recipient, please contact the sender by reply email and destroy all
> copies of the original message.
> ------------------------------------------------------------------------
> 
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
> 

-- 

Axel Huebl
Diploma Student
Phone +49 351 260 3582
https://www.hzdr.de/crp
Computational Radiation Physics
Laser Particle Acceleration Division
Helmholtz-Zentrum Dresden - Rossendorf e.V.

Bautzner Landstrasse 400, 01328 Dresden
POB 510119, D-01314 Dresden
Vorstand: Prof. Dr.Dr.h.c. R. Sauerbrey
          Prof. Dr.Dr.h.c. P. Joehnk
VR 1693 beim Amtsgericht Dresden

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5002 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140716/dfa2660c/attachment.bin>


More information about the ParaView mailing list