Skip to content

Instantly share code, notes, and snippets.

View mconcas's full-sized avatar
🌊

Matteo Concas mconcas

🌊
View GitHub Profile
@mconcas
mconcas / Makefile
Last active February 19, 2021 13:20
[OpenCL2.0][reproducer] error: taking address of function is not allowed
DEFINES="-DNDEBUG -D__OPENCLCPP__"
FLAGS="-Xclang -fdenormal-fp-math-f32=ieee -cl-mad-enable -cl-no-signed-zeros -ferror-limit=1000 -Xclang -finclude-default-header -Dcl_clang_storage_class_specifiers"
COMPILER=/opt/clang/bin/clang++
reproducer: reproducer.cl
$(COMPILER) -O0 -cl-std=clc++ -x cl -emit-llvm --target=spir64-unknown-unknown $(DEFINES) $(FLAGS) -c reproducer.cl -o reproducer.bc
workaround: workaround.cl
$(COMPILER) -O0 -cl-std=clc++ -x cl -emit-llvm --target=spir64-unknown-unknown $(DEFINES) $(FLAGS) -c workaround.cl -o workaround.bc
@mconcas
mconcas / run.sh
Last active October 15, 2021 17:34
#!/usr/bin/bash -x
wget http://alimonitor.cern.ch/download/local.jar
rm -Rf data
rm ITSdictionary.root o2*.root
mkdir -p data
export FILE_REPOSITORY_LOCATION=$PWD/data
#if !defined(__CLING__) || defined(__ROOTCLING__)
//#define ENABLE_UPGRADES
#include "DetectorsCommonDataFormats/DetID.h"
#include "DetectorsCommonDataFormats/NameConf.h"
#include "DetectorsCommonDataFormats/AlignParam.h"
#include "DetectorsBase/GeometryManager.h"
#include "CCDB/CcdbApi.h"
#include "ITSBase/GeometryTGeo.h"
#include <TRandom.h>
#include <TFile.h>
@mconcas
mconcas / run_raw_msk_sq3_suite.sh
Last active October 24, 2022 15:26
Run three different configuration of reconstruction
#! /bin/bash
# global params
DATA_LIST="${1}"
# global arguments
GLO_ARG="--shm-segment-size 24000000000"
# raw arguments
CLPAR_RAW=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=-10;ITSClustererParam.maxBCDiffToSquashBias=-10;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"
# mask arguments
CLPAR_MSK=" --configKeyValues ITSClustererParam.maxBCDiffToMaskBias=10;ITSClustererParam.maxBCDiffToSquashBias=-10;ITSClustererParam.maxSOTMUS=8.;fastMultConfig.cutMultClusLow=-1;fastMultConfig.cutMultClusHigh=-1;fastMultConfig.cutMultVtxHigh=-1;ITSVertexerParam.phiCut=0.5;ITSVertexerParam.clusterContributorsCut=3;ITSVertexerParam.tanLambdaCut=0.2;"