From 54b6559d64b2c9fd7950bec5c358221df480c9c4 Mon Sep 17 00:00:00 2001 From: Sergey Pokhodenko Date: Tue, 10 Nov 2020 01:13:34 +0300 Subject: [PATCH] Move build_for_develop.sh to `numba-dppy` This script is for developers. It could be moved and refactored or removed as build should become simpler. This script contains useful code for building atomics with SPIRV. This code should be moved to setup.py of `numba-dppy`. --- build_for_develop.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100755 build_for_develop.sh diff --git a/build_for_develop.sh b/build_for_develop.sh deleted file mode 100755 index 3d5e710a05e..00000000000 --- a/build_for_develop.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -if [ -z "$CC" ]; then - CC=gcc - CXX=g++ -fi - -function usage() { - echo "usage: ./build_for_develop.sh [ [-h | --help] | [-d | --debug] ]" -} - -DEBUG_FLAGS="" - -while [ "$1" != "" ]; do - case $1 in - "-d" | "--debug" ) shift - DEBUG_FLAGS="-g -DDEBUG" - ;; - "-h" | "--help" ) usage - exit - ;; - * ) usage - exit - esac - shift -done - -set -x - -python setup.py clean --all -python setup.py build_ext --inplace -python setup.py develop - -CC=clang -CXX=dpcpp - -$CC -flto -target spir64-unknown-unknown -c -x cl -emit-llvm -cl-std=CL2.0 -Xclang -finclude-default-header numba/dppl/ocl/atomics/atomic_ops.cl -o numba/dppl/ocl/atomics/atomic_ops.bc -llvm-spirv -o numba/dppl/ocl/atomics/atomic_ops.spir numba/dppl/ocl/atomics/atomic_ops.bc