Skip to content

Instantly share code, notes, and snippets.

View teamiceberg's full-sized avatar
😅
hacking away to neverland

Shiva Badruswamy teamiceberg

😅
hacking away to neverland
View GitHub Profile
@teamiceberg
teamiceberg / InfiniBand NVIDIA Performance Test
Created July 14, 2024 19:54
Infiniband network performance tests
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
@teamiceberg
teamiceberg / ws_connect.py
Created March 23, 2023 18:57
Websocket connect code
'''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)
@teamiceberg
teamiceberg / tensorflow_self_check.py
Created February 13, 2020 16:42 — forked from mrry/tensorflow_self_check.py
[DEPRECATED] TensorFlow on Windows self-check
# 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,