-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add whole-slide tiled read/write demos for measuring GPUDirect Storage (GDS) I/O performance #452
add whole-slide tiled read/write demos for measuring GPUDirect Storage (GDS) I/O performance #452
Conversation
change folder name add back missing function update paths searched for resize.tiff add description of how to obtain test data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Greg! Looks good to me!
# def get_config(self): | ||
# # cc_config = self.compressor.get_config() if self.compressor else None | ||
# return { | ||
# "id": self.codec_id, | ||
# "compressor_config": None, # cc_config, | ||
# } | ||
|
||
# @classmethod | ||
# def from_config(cls, config): | ||
# # cc_config = config.get("compressor_config", None) | ||
# # compressor = get_codec(cc_config) if cc_config else None | ||
# return cls() # compressor=compressor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed? or want to keep this for other purpose?
Co-authored-by: Gigon Bae <gigony@gmail.com>
@gpucibot merge |
if dtype == 'uint8': | ||
img = image_gpu | ||
assert img.dtype == cp.uint8 | ||
else: | ||
img = image_gpu.astype(dtype) | ||
else: | ||
raise NotImplementedError("only testing for uint8 and uint16") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This double else
looks odd. What was intended?
Looking at the error message would have thought this
if dtype == 'uint8': | |
img = image_gpu | |
assert img.dtype == cp.uint8 | |
else: | |
img = image_gpu.astype(dtype) | |
else: | |
raise NotImplementedError("only testing for uint8 and uint16") | |
if dtype == 'uint8': | |
img = image_gpu | |
assert img.dtype == cp.uint8 | |
elif dtype == 'uint16': | |
img = image_gpu | |
assert img.dtype == cp.uint16 | |
else: | |
raise NotImplementedError("only testing for uint8 and uint16") |
Though maybe the error is simply not needed? However then the if
is probably unnecessary too
if dtype == 'uint8': | |
img = image_gpu | |
assert img.dtype == cp.uint8 | |
else: | |
img = image_gpu.astype(dtype) | |
else: | |
raise NotImplementedError("only testing for uint8 and uint16") | |
img = image_gpu.astype(dtype) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @bdice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For context, I was trying to update #474 which reinstates some style checks that were disabled during the GitHub Actions transition. The Python code fails to parse because it has two else: blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts @grlee77?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating issue ( #484 ) to track
These demos are intended to accompany a blog post describing tiled read and write operations of whole slide images.