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
asciinema rec -c "doitlive play session.sh -q" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
try: | |
import sqlite3 | |
except: | |
print "Sorry, you need sqlite3" | |
sys.exit(1) |
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
#!/bin/bash | |
str_utilisation="$0 (doi|isbn) <value>" | |
if [ "$#" -ne 2 ];then | |
echo ${str_utilisation} | |
exit 1 | |
fi | |
if [ "$1" == "doi" ];then | |
doi_raw=$2 |
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
def same_character(item1): | |
return item1==item1[0]* len(item1) | |
def compare_gamess_style(item1, item2): | |
if len(item1) < len(item2): | |
return -1 | |
elif len(item1) > len(item2): | |
return 1 | |
elif same_character(item1) and same_character(item2): | |
if item1 < item2: |
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
#!/usr/bin/env python3 | |
# _ _ _ _ _ | |
# | | | | | (_) | | |
# | | | | |_ _| |___ | |
# | | | | __| | / __| | |
# | |_| | |_| | \__ \ | |
# \___/ \__|_|_|___/ | |
# |
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
#include <iostream> | |
#define GPOLICY_INTERLEAVE 0 | |
#define GPOLICY_COMPACT 1 | |
static int map_compact(const unsigned rank_id, const unsigned num_ranks, const unsigned num_gpus, | |
unsigned *gpu_id, unsigned *bin_size, unsigned *bin_id) { | |
const unsigned small_bin_size = num_ranks / num_gpus; | |
const unsigned big_bin_size = small_bin_size + 1; |
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
#include <level_zero/ze_api.h> | |
#include <iostream> | |
#include <fstream> | |
#include <memory> | |
#include <vector> | |
#include <chrono> | |
#include <limits> | |
#include <unistd.h> | |
#define zeCall(myZeCall) \ |
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
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
#include <omp.h> | |
#include <math.h> | |
#include <assert.h> | |
bool almost_equal(float x, float gold, float tol) { | |
return abs(gold) * (1-tol) <= abs(x) && abs(x) <= abs(gold) * (1 + tol); | |
} |
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
#define MAD_4(x, y) \ | |
x = y * x + y; \ | |
y = x * y + x; \ | |
x = y * x + y; \ | |
y = x * y + x; | |
#define MAD_16(x, y) \ | |
MAD_4(x, y); \ | |
MAD_4(x, y); \ | |
MAD_4(x, y); \ | |
MAD_4(x, y); |
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
diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc | |
index cea90170..f0402c37 100644 | |
--- a/adoc/chapters/programming_interface.adoc | |
+++ b/adoc/chapters/programming_interface.adoc | |
@@ -3215,6 +3215,39 @@ requested by the template parameter [code]#param#. | |
error code if the <<backend>> that corresponds with [code]#param# is different | |
from the <<backend>> that is associated with this [code]#queue#. | |
+a@ | |
+[source] |
OlderNewer