This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IB_READ_BW | |
| May 28, 2022 | |
| CONTENT | |
| DESCRIPTION | |
| ib_read_bw (InfiniBand read bandwidth) tool is part of Perftest Package . | |
| This post shows the configuration options for this tool as a part of perftest package version 5.6 | |
| REFERENCES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '''this code was generated by chatGPT4 with the following comments: In this example, we define four callback functions (on_message, on_error, on_close, on_open) that will be called when the websocket receives a message, encounters an error, closes the connection, or opens a connection respectively. | |
| We then create a WebSocketApp object and pass the websocket URL, along with the four callback functions as parameters. Finally, we call run_forever() to connect to the websocket and start receiving messages. | |
| You will need to replace wss://example.com/websocket with the actual websocket URL that you want to connect to. Additionally, you may need to install the websocket library by running pip install websocket in your terminal.''' | |
| import websocket | |
| def on_message(ws, message): | |
| print(message) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2015 The TensorFlow Authors. All Rights Reserved. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |