Skip to content

Commit

Permalink
fix virtual dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Oct 1, 2024
1 parent 628e525 commit 8726f87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cpp/include/kvikio/remote_handle.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ class RemoteEndpoint {
* @returns A string description.
*/
virtual std::string str() = 0;

virtual ~RemoteEndpoint() = default;
};

/**
Expand All @@ -343,7 +345,6 @@ class HttpEndpoint : public RemoteEndpoint {
std::string _url;

public:
HttpEndpoint() = default;
HttpEndpoint(std::string url) : _url{std::move(url)} {}
void setopt(detail::CurlHandle& curl) override { curl.setopt(CURLOPT_URL, _url.c_str()); }
std::string str() override { return _url; }
Expand Down
4 changes: 2 additions & 2 deletions python/kvikio/kvikio/benchmarks/http_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def run() -> float:


API = {
"cupy-kvikio": partial(run_numpy_like, xp=cupy),
"numpy-kvikio": partial(run_numpy_like, xp=numpy),
"cupy": partial(run_numpy_like, xp=cupy),
"numpy": partial(run_numpy_like, xp=numpy),
}


Expand Down

0 comments on commit 8726f87

Please sign in to comment.