[vtkusers] memory management
David E DeMarle
dave.demarle at kitware.com
Fri Sep 17 21:21:57 EDT 2010
A look at the CMake config files makes me think it should work fine
without VTK_USE_MPI.
You do however need VTK_USE_PARALLEL on or the vtkPCosmoReader class
won't be compiled. I think turning that on just takes turning on the
option in ccmake or cmake_gui and recompiling.
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
On Thu, Sep 16, 2010 at 11:51 AM, Jon Woodring <woodring at lanl.gov> wrote:
> It has definitely has #ifdefs to work in serial.
>
> Maybe just turning on parallel will build it. I don't know, I usually use
> VTK via ParaView, so I'm certainly not an expert on that front.
>
> Dave, does enabling the parallel stuff to work require an MPI install? I
> know our readers and halo finders don't necessarily need it, but it does
> require stuff from vtkMultiProcessController which is a parallel thing.
>
> -Jon
>
> On 9/16/10 11:41 AM, Ula Popov wrote:
>>
>> It is the old Cosmo Reader.
>>
>> Actually, I don't know how to use the new one.
>> I can not even compile my files.
>>
>> In CMakeLists.txt
>> I changed from
>> TARGET_LINK_LIBRARIES(treat_density vtkRendering)
>> to
>> TARGET_LINK_LIBRARIES(treat_density vtkRendering vtkParallel)
>>
>> But my compiler doesn't recognize
>> #include <vtkPCosmoReader.h>
>>
>> Probably, I should recompile VTK to work in parallel,
>> but I don't know how.
>>
>>
>>
>> On Thu, Sep 16, 2010 at 8:37 AM, Jon Woodring <woodring at lanl.gov
>> <mailto:woodring at lanl.gov>> wrote:
>>
>> Also, I am wondering if that is the old Cosmo reader?
>>
>> The latest official Cosmo reader is called vtkPCosmoReader in the
>> Parallel directory (though it works in serial as well), and the old
>> one doesn't exist anymore.
>>
>> -Jon
>>
>>
>> On 9/15/10 7:08 PM, David E DeMarle wrote:
>>
>> Can you post the code that iterates? If large send it off list.
>> I can
>> help diagnose and fix.
>>
>> David E DeMarle
>> Kitware, Inc.
>> R&D Engineer
>> 28 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-371-3971 x109
>>
>>
>>
>> On Wed, Sep 15, 2010 at 4:31 PM, Ula Popov<ula.popov at gmail.com
>> <mailto:ula.popov at gmail.com>> wrote:
>>
>> Hi all,
>>
>> I'm using vtkCosmoReader to read files.
>> The files are really big, each file is 4GB.
>> I read files in a loop, each iteration I'm using (reading)
>> only 2 files.
>> After 2 iterations I get a message, that my computer can not
>> allocate more
>> memory.
>>
>> I suspect that the reader doesn't closes the files. Is there
>> any way to
>> check/force
>> file/memory management/garbage collection?
>>
>> Thank you for any ideas,
>> Ula
>>
>> P.S. I checked all other components, they should not cause
>> the problem
>>
>> _______________________________________________
>> Powered by www.kitware.com <http://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 VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>>
>>
>
>
More information about the vtkusers
mailing list