trying more things
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
, overrideCC
|
||||
, gcc
|
||||
, hwloc
|
||||
, glibc
|
||||
, libelf
|
||||
, libffi_3_3
|
||||
, libpsm2
|
||||
@@ -50,6 +51,9 @@ let
|
||||
echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
|
||||
echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags
|
||||
|
||||
# echo "-isystem ${lib.getDev glibc}/include" >> $out/nix-support/libc-cflags
|
||||
# echo "-isystem ${lib.getDev glibc}/include" >> $out/nix-support/cc-cflags
|
||||
|
||||
echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/cc-cflags
|
||||
|
||||
# For some reason, If we don't resolve the realpath things go wrong
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, writeShellScript
|
||||
, openmp ? null
|
||||
, wrapCCWith
|
||||
, glibc
|
||||
, llvmPackages_latest
|
||||
, ompss2rt ? null
|
||||
}:
|
||||
@@ -41,16 +42,25 @@ let
|
||||
|
||||
resetIntelCCFlags = let tconf = builtins.replaceStrings ["-"] ["_"] targetConfig;
|
||||
in writeShellScript "remove-intel.sh" ''
|
||||
if [ "$NIX_CC_WRAPPER_INTEL" = 1 ]; then
|
||||
if [ "''${NIX_CC_WRAPPER_INTEL:-0}" = 1 ]; then
|
||||
unset NIX_CFLAGS_COMPILE_${tconf}
|
||||
unset NIX_CFLAGS_COMPILE_BEFORE_${tconf}
|
||||
unset NIX_CFLAGS_LINK_${tconf}
|
||||
unset NIX_CXXSTDLIB_COMPILE_${tconf}
|
||||
unset NIX_CXXSTDLIB_LINK_${tconf}
|
||||
unset NIX_GNATFLAGS_COMPILE_${tconf}
|
||||
|
||||
# unset NIX_CFLAGS_COMPILE_BEFORE_${tconf}
|
||||
#
|
||||
# unset NIX_CFLAGS_LINK_${tconf}
|
||||
# unset NIX_CXXSTDLIB_COMPILE_${tconf}
|
||||
# unset NIX_CXXSTDLIB_LINK_${tconf}
|
||||
# unset NIX_GNATFLAGS_COMPILE_${tconf}
|
||||
|
||||
|
||||
unset NIX_CC_WRAPPER_FLAGS_SET_${tconf}
|
||||
# unset NIX_BINTOOLS_WRAPPER_FLAGS_${tconf}
|
||||
# unset NIX_BINTOOLS_WRAPPER_FLAGS_${tconf}
|
||||
|
||||
# export NIX_CFLAGS_COMPILE_${tconf}="-isystem ${lib.getDev glibc}/include"
|
||||
# export NIX_CFLAGS_COMPILE_BEFORE_${tconf}="-isystem ${lib.getDev glibc}/include"
|
||||
# export NIX_CC_WRAPPER_FLAGS_SET_${tconf}="-isystem ${lib.getDev glibc}/include"
|
||||
|
||||
echo "CLEANED CC WRAPPER INTEL VARIABLES ${tconf}"
|
||||
fi
|
||||
'';
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ intelPackages.stdenv.mkDerivation {
|
||||
|
||||
env.NODES_HOME = nodes;
|
||||
|
||||
NIX_DEBUG = 0;
|
||||
NIX_DEBUG = 1;
|
||||
buildPhase = ''
|
||||
cp $src hello.cpp
|
||||
set -x
|
||||
@@ -54,9 +54,9 @@ intelPackages.stdenv.mkDerivation {
|
||||
echo NODES_HOME=$NODES_HOME
|
||||
command -v $CXX
|
||||
|
||||
icpx -fsycl \
|
||||
icpx -Wno-deprecated-declarations -fsycl \
|
||||
-fsycl-host-compiler=${clangOmpss2Nodes}/bin/clang++ \
|
||||
-fsycl-host-compiler-options='-fompss-2=libnodes' \
|
||||
-fsycl-host-compiler-options='-Wno-deprecated-declarations -fompss-2=libnodes' \
|
||||
-lnodes -lnosv \
|
||||
$NODES_HOME/lib/nodes-main-wrapper.o \
|
||||
hello.cpp -o hello
|
||||
|
||||
Reference in New Issue
Block a user