Add clang support
This commit is contained in:
parent
7cddf4735f
commit
0216bed053
2
Makefile
2
Makefile
@ -7,7 +7,7 @@ include ./etc/make/emacs.mk
|
||||
include ./etc/config/$(CONFIG).mk
|
||||
include ./bench/config.mk
|
||||
|
||||
$(info using configuration CONFIG=$(CONFIG))
|
||||
$(info ==ATRIP== using configuration CONFIG=$(CONFIG))
|
||||
|
||||
MAIN = README.org
|
||||
OBJ_FILES = $(patsubst %.cxx,%.o,$(filter-out %.hpp,$(SOURCES)))
|
||||
|
||||
10
README.org
10
README.org
@ -1283,7 +1283,7 @@ namespace atrip {
|
||||
const int rank = Atrip::rank
|
||||
, Nv = sliceLength[0]
|
||||
, No = sliceLength[1]
|
||||
, a = rankMap.find({rank, it});
|
||||
, a = rankMap.find({static_cast<size_t>(rank), it});
|
||||
;
|
||||
|
||||
|
||||
@ -1321,7 +1321,7 @@ namespace atrip {
|
||||
|
||||
const int rank = Atrip::rank
|
||||
, No = sliceLength[0]
|
||||
, a = rankMap.find({rank, it})
|
||||
, a = rankMap.find({static_cast<size_t>(rank), it})
|
||||
;
|
||||
|
||||
sliceIntoVector( sources[it]
|
||||
@ -1358,7 +1358,7 @@ namespace atrip {
|
||||
const int Nv = sliceLength[0]
|
||||
, No = sliceLength[1]
|
||||
, rank = Atrip::rank
|
||||
, el = rankMap.find({rank, it})
|
||||
, el = rankMap.find({static_cast<size_t>(rank), it})
|
||||
, a = el % Nv
|
||||
, b = el / Nv
|
||||
;
|
||||
@ -1397,7 +1397,7 @@ namespace atrip {
|
||||
const int Nv = from.lens[0]
|
||||
, No = sliceLength[1]
|
||||
, rank = Atrip::rank
|
||||
, el = rankMap.find({rank, it})
|
||||
, el = rankMap.find({static_cast<size_t>(rank), it})
|
||||
, a = el % Nv
|
||||
, b = el / Nv
|
||||
;
|
||||
@ -1438,7 +1438,7 @@ namespace atrip {
|
||||
const int Nv = from.lens[0]
|
||||
, No = sliceLength[1]
|
||||
, rank = Atrip::rank
|
||||
, el = rankMap.find({rank, it})
|
||||
, el = rankMap.find({static_cast<size_t>(rank), it})
|
||||
, a = el % Nv
|
||||
, b = el / Nv
|
||||
;
|
||||
|
||||
4
etc/config/clang.mk
Normal file
4
etc/config/clang.mk
Normal file
@ -0,0 +1,4 @@
|
||||
include ./etc/config/gcc.mk
|
||||
|
||||
export OMPI_CC=clang
|
||||
export OMPI_CXX=clang++
|
||||
@ -8,6 +8,8 @@ CXXFLAGS += -I$(ATRIP_ROOT)/include
|
||||
|
||||
CXXFLAGS += -I$(CTF_INCLUDE_PATH)
|
||||
CXXFLAGS += -fPIC
|
||||
CXXFLAGS += -std=c++11
|
||||
CXXFLAGS += -pedantic -Wall
|
||||
|
||||
LDFLAGS += -fopenmp
|
||||
LDFLAGS += -Wl,-Bstatic
|
||||
|
||||
@ -2,7 +2,7 @@ CTF_REPOSITORY = https://github.com/cyclops-community/ctf
|
||||
CTF_COMMIT ?= v1.5.0
|
||||
|
||||
CTF_SRC_PATH = $(ATRIP_ROOT)/extern/src/ctf/$(CTF_COMMIT)
|
||||
CTF_BUILD_PATH = $(ATRIP_ROOT)/extern/build/ctf/$(CTF_COMMIT)
|
||||
CTF_BUILD_PATH = $(ATRIP_ROOT)/extern/build/$(CONFIG)/ctf/$(CTF_COMMIT)
|
||||
|
||||
CTF_CONFIG_FLAGS =
|
||||
|
||||
|
||||
@ -4,6 +4,9 @@ pkgs.mkShell rec {
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
|
||||
clang
|
||||
llvmPackages.openmp
|
||||
|
||||
coreutils
|
||||
git
|
||||
|
||||
@ -19,9 +22,7 @@ pkgs.mkShell rec {
|
||||
openblas = pkgs.openblas.override {
|
||||
enableStatic = true;
|
||||
};
|
||||
*/
|
||||
|
||||
/*
|
||||
scalapack = import ./etc/nix/scalapack.nix {
|
||||
lib = pkgs.lib;
|
||||
stdenv = pkgs.stdenv;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user