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 will be executed by multiple processes | |
# each process will have a RANKID | |
MPI_RANK=$PALS_RANKID | |
# UUID for each process | |
THAPI_LOCK_DIR=$HOME/.lttng_mpi/$MPI_RANK | |
rm -rf $THAPI_LOCK_DIR | |
mkdir -p $THAPI_LOCK_DIR/ | |
# Independ lttng session |
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 "utlist.h" | |
#include <babeltrace2/babeltrace.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
struct el { | |
const bt_message *message; | |
struct el *next, *prev; | |
}; |
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] |
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
#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
#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 <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
#!/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
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
#!/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 |
NewerOlder