Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sudhanshu Sane
VTK-m
Commits
f5ce79e4
Commit
f5ce79e4
authored
Dec 21, 2018
by
Robert Maynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zfp worklets now can handle array handles with non default storage
parent
35b73908
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
24 deletions
+27
-24
vtkm/filter/ZFPDecompressor1D.hxx
vtkm/filter/ZFPDecompressor1D.hxx
+1
-1
vtkm/filter/ZFPDecompressor2D.hxx
vtkm/filter/ZFPDecompressor2D.hxx
+1
-1
vtkm/filter/ZFPDecompressor3D.hxx
vtkm/filter/ZFPDecompressor3D.hxx
+1
-1
vtkm/worklet/ZFP1DCompressor.h
vtkm/worklet/ZFP1DCompressor.h
+5
-4
vtkm/worklet/ZFP1DDecompress.h
vtkm/worklet/ZFP1DDecompress.h
+3
-3
vtkm/worklet/ZFP2DCompressor.h
vtkm/worklet/ZFP2DCompressor.h
+5
-4
vtkm/worklet/ZFP2DDecompress.h
vtkm/worklet/ZFP2DDecompress.h
+3
-3
vtkm/worklet/ZFPCompressor.h
vtkm/worklet/ZFPCompressor.h
+5
-4
vtkm/worklet/ZFPDecompress.h
vtkm/worklet/ZFPDecompress.h
+3
-3
No files found.
vtkm/filter/ZFPDecompressor1D.hxx
View file @
f5ce79e4
...
...
@@ -78,7 +78,7 @@ inline VTKM_CONT vtkm::cont::DataSet ZFPDecompressor1D::DoExecute(
}
}
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
,
StorageType
>
decompress
;
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
>
decompress
;
decompressor
.
Decompress
(
field
,
decompress
,
rate
,
field
.
GetNumberOfValues
());
vtkm
::
cont
::
DataSet
dataset
;
...
...
vtkm/filter/ZFPDecompressor2D.hxx
View file @
f5ce79e4
...
...
@@ -83,7 +83,7 @@ inline VTKM_CONT vtkm::cont::DataSet ZFPDecompressor2D::DoExecute(
input
.
GetCellSet
(
0
).
CopyTo
(
cellSet
);
vtkm
::
Id2
pointDimensions
=
cellSet
.
GetPointDimensions
();
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
,
StorageType
>
decompress
;
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
>
decompress
;
decompressor
.
Decompress
(
field
,
decompress
,
rate
,
pointDimensions
);
vtkm
::
cont
::
DataSet
dataset
;
...
...
vtkm/filter/ZFPDecompressor3D.hxx
View file @
f5ce79e4
...
...
@@ -82,7 +82,7 @@ inline VTKM_CONT vtkm::cont::DataSet ZFPDecompressor3D::DoExecute(
input
.
GetCellSet
(
0
).
CopyTo
(
cellSet
);
vtkm
::
Id3
pointDimensions
=
cellSet
.
GetPointDimensions
();
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
,
StorageType
>
decompress
;
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Float64
>
decompress
;
decompressor
.
Decompress
(
field
,
decompress
,
rate
,
pointDimensions
);
vtkm
::
cont
::
DataSet
dataset
;
...
...
vtkm/worklet/ZFP1DCompressor.h
View file @
f5ce79e4
...
...
@@ -45,10 +45,11 @@ namespace worklet
class
ZFP1DCompressor
{
public:
template
<
typename
Scalar
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id
dims
)
template
<
typename
Scalar
,
typename
Storage
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
Storage
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id
dims
)
{
DataDump
(
data
,
"uncompressed"
);
zfp
::
ZFPStream
stream
;
...
...
vtkm/worklet/ZFP1DDecompress.h
View file @
f5ce79e4
...
...
@@ -51,9 +51,9 @@ namespace detail
class
ZFP1DDecompressor
{
public:
template
<
typename
Scalar
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
output
,
template
<
typename
Scalar
,
typename
StorageIn
,
typename
StorageOut
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
,
StorageIn
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
StorageOut
>&
output
,
const
vtkm
::
Float64
requestedRate
,
vtkm
::
Id
dims
)
{
...
...
vtkm/worklet/ZFP2DCompressor.h
View file @
f5ce79e4
...
...
@@ -45,10 +45,11 @@ namespace worklet
class
ZFP2DCompressor
{
public:
template
<
typename
Scalar
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id2
dims
)
template
<
typename
Scalar
,
typename
Storage
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
Storage
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id2
dims
)
{
DataDump
(
data
,
"uncompressed"
);
zfp
::
ZFPStream
stream
;
...
...
vtkm/worklet/ZFP2DDecompress.h
View file @
f5ce79e4
...
...
@@ -51,9 +51,9 @@ namespace detail
class
ZFP2DDecompressor
{
public:
template
<
typename
Scalar
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
output
,
template
<
typename
Scalar
,
typename
StorageIn
,
typename
StorageOut
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
,
StorageIn
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
StorageOut
>&
output
,
const
vtkm
::
Float64
requestedRate
,
vtkm
::
Id2
dims
)
{
...
...
vtkm/worklet/ZFPCompressor.h
View file @
f5ce79e4
...
...
@@ -44,10 +44,11 @@ namespace worklet
class
ZFPCompressor
{
public:
template
<
typename
Scalar
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id3
dims
)
template
<
typename
Scalar
,
typename
Storage
>
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>
Compress
(
const
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
Storage
>&
data
,
const
vtkm
::
Float64
requestedRate
,
const
vtkm
::
Id3
dims
)
{
DataDump
(
data
,
"uncompressed"
);
zfp
::
ZFPStream
stream
;
...
...
vtkm/worklet/ZFPDecompress.h
View file @
f5ce79e4
...
...
@@ -81,9 +81,9 @@ namespace detail
class
ZFPDecompressor
{
public:
template
<
typename
Scalar
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
>&
output
,
template
<
typename
Scalar
,
typename
StorageIn
,
typename
StorageOut
>
void
Decompress
(
const
vtkm
::
cont
::
ArrayHandle
<
vtkm
::
Int64
,
StorageIn
>&
encodedData
,
vtkm
::
cont
::
ArrayHandle
<
Scalar
,
StorageOut
>&
output
,
const
vtkm
::
Float64
requestedRate
,
vtkm
::
Id3
dims
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment