Skip to content

Instantly share code, notes, and snippets.

View axsaucedo's full-sized avatar

Alejandro Saucedo axsaucedo

View GitHub Profile
# ...previous code blocks
mgr = kp.Manager()
# ...latter code blocks
@axsaucedo
axsaucedo / main.cpp
Last active September 10, 2020 05:58
Initial manager creation
// Single header include for Kompute
#include "kompute/Kompute.hpp"
int main() {
// Vulkan resources get created unless passed
kp::Manager mgr(0); // Selects GPU device at index 0
//... continued in next section
}
@axsaucedo
axsaucedo / calculate_size.py
Created March 13, 2019 12:05
Print the size of an azure blob with the Python AzureSDK
import os
from azure.storage.blob import BlockBlobService, PublicAccess
CONTAINER_NAME = os.environ["AZURE_CONTAINER_NAME"]
AZURE_STORAGE_ACCOUNT = os.environ["AZURE_STORAGE_ACCOUNT"]
AZURE_STORAGE_KEY = os.environ["AZURE_STORAGE_KEY"]
bbs = BlockBlobService(
account_name=AZURE_STORAGE_ACCOUNT,
account_key=AZURE_STORAGE_KEY)