[prev in list] [next in list] [prev in thread] [next in thread] 

List:       paraview
Subject:    Re: [Paraview] Building Piston
From:       KESTENER Pierre <pierre.kestener () cea ! fr>
Date:       2014-07-25 23:07:00
Message-ID: 123B4248067C9C49ABB98E5EA3F72B242613298F () E-EXDAGE-A1 ! extra ! cea ! fr
[Download RAW message or body]

Hello Praveen,

I faced the same problem as you when trying to build Piston standalone sources today.

you probably have found out by now, but just to let other people know, piston \
standalone must be configured like this

ccmake -DCUDA_NVCC_FLAGS=" -gencode=arch=compute_30,code=sm_30 \
-DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA" ..

this is because THRUST_DEVICE_BACKEND is unset by default that error like

    error: invalid redeclaration of type name "float3"

raises from piston_math.h

So for paraview point of view, piston_math.h must be either modified or parsed with
 THRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA




I also noticed that thrust interface used in piston standalone is quite old
thrust::detail::default_device_space_tag must be replaced by thrust::device_space_tag

to build, but it is deprecated. I think that someone more skilled than me in thrust \
details could refresh a bit piston sources.

At least, it working with these small changes.


Pierre.


[Attachment #3 (text/html)]

<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello \
Praveen<b>,<br> <br>
</b>I faced the same problem as you when trying to build Piston standalone sources \
today.<br> <br>
you probably have found out by now, but just to let other people know, piston \
standalone must be configured like this<br> <br>
ccmake -DCUDA_NVCC_FLAGS=&quot; -gencode=arch=compute_30,code=sm_30 \
-DTHRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA&quot; ..<br> <br>
this is because THRUST_DEVICE_BACKEND is unset by default that error like<br>
<pre>&nbsp;&nbsp;&nbsp; error: invalid redeclaration of type name \
&quot;float3&quot;<br><br>raises from piston_math.h<br><br>So for paraview point of \
view, piston_math.h must be either modified or parsed \
with<br>&nbsp;THRUST_DEVICE_BACKEND=THRUST_DEVICE_BACKEND_CUDA<br><br><br><br><br>I \
also noticed that thrust interface used in piston standalone is quite \
old<br>thrust::detail::default_device_space_tag must be replaced by \
thrust::device_space_tag<br></pre> to build, but it is deprecated. I think that \
someone more skilled than me in thrust details could refresh a bit piston \
sources.<br> <br>
At least, it working with these small changes.<br>
<br>
<br>
Pierre.<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<pre class="moz-signature" cols="72"><br></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>



_______________________________________________
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

--===============0457462614==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic