File tree Expand file tree Collapse file tree 30 files changed +893
-289
lines changed
runtime/libpgmath/lib/x86_64/fast Expand file tree Collapse file tree 30 files changed +893
-289
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_X8664_L2")
2222set (SRCS
2323 fastcdiv.S
2424 fastmod.S)
25- libmath_add_object_library("${SRCS} " "${FLAGS} " "${DEFINITIONS} " "" )
25+ libmath_add_object_library("${SRCS} " "${FLAGS} -mtune=skylake-avx512 -march=skylake-avx512 " "${DEFINITIONS} " "" )
2626
2727set (TARGET_NAME "mthdecls" )
2828list (APPEND PREPROCESSOR "${CMAKE_C_COMPILER} -E -DMTH_CMPLX_C99_ABI -DMTH_NO_STD_MATH_HDRS -dM ${CMAKE_CURRENT_SOURCE_DIR} /../${TARGET_NAME} .h" )
@@ -45,5 +45,5 @@ endif()
4545include_directories (${CMAKE_CURRENT_BINARY_DIR} )
4646set (SRCS
4747 fastmath.S)
48- libmath_add_object_library("${SRCS} " "-m64 -O3" "${DEFINITIONS} " "fastmath" )
48+ libmath_add_object_library("${SRCS} " "-m64 -O3 -mtune=skylake-avx512 -march=skylake-avx512 " "${DEFINITIONS} " "fastmath" )
4949add_dependencies (fastmath mthdecls)
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------ building test $(TEST )
17+ $(CC ) -c $(CFLAGS ) $(SRC ) /check.c -o check.$(OBJX )
18+ $(FC ) $(FFLAGS ) $(LDFLAGS ) $(SRC ) /$(TEST ) .f90 check.$(OBJX ) -o $(TEST ) .$(EXESUFFIX )
19+
20+ run : $(TEST ) .$(EXESUFFIX )
21+ @echo ------------------------------------ executing test $(TEST )
22+ $(TEST ) .$(EXESUFFIX )
23+
24+ verify :
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------ building test $(TEST )
17+ $(CC ) -c $(CFLAGS ) $(SRC ) /check.c -o check.$(OBJX )
18+ $(FC ) $(FFLAGS ) $(LDFLAGS ) $(SRC ) /$(TEST ) .f90 check.$(OBJX ) -o $(TEST ) .$(EXESUFFIX )
19+
20+ run : $(TEST ) .$(EXESUFFIX )
21+ @echo ------------------------------------ executing test $(TEST )
22+ $(TEST ) .$(EXESUFFIX )
23+
24+ verify :
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------ building test $(TEST )
17+ $(CC ) -c $(CFLAGS ) $(SRC ) /check.c -o check.$(OBJX )
18+ $(FC ) $(FFLAGS ) $(LDFLAGS ) $(SRC ) /$(TEST ) .f90 check.$(OBJX ) -o $(TEST ) .$(EXESUFFIX )
19+
20+ run : $(TEST ) .$(EXESUFFIX )
21+ @echo ------------------------------------ executing test $(TEST )
22+ $(TEST ) .$(EXESUFFIX )
23+
24+ verify :
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------ building test $(TEST )
17+ $(FC ) -c $(FFLAGS ) $(LDFLAGS ) $(SRC ) /$(TEST ) .f90 -o $(TEST ) .$(EXESUFFIX )
18+
19+ run : ; # compilation-only test
20+
21+ verify :
22+ @echo PASS
23+
24+
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------ building test $(TEST )
17+ $(FC ) -c $(FFLAGS ) $(LDFLAGS ) $(SRC ) /$(TEST ) .f90 -o $(TEST ) .$(EXESUFFIX )
18+
19+ run : ; # compilation-only test
20+
21+ verify :
22+ @echo PASS
23+
24+
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------- building test $@
17+ $(FC ) $(FFLAGS ) $(SRC ) /$(TEST ) .f90 -o $(TEST ) .$(EXE )
18+
19+ run :
20+ @echo ------------------------------------ executing test $@
21+ ./$(TEST ) .$(EXE )
22+
23+ verify : ;
Original file line number Diff line number Diff line change 1+ # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ build :
16+ @echo ------------------------------------- building test $@
17+ $(FC ) $(FFLAGS ) $(SRC ) /$(TEST ) .f90 -o $(TEST ) .$(EXE )
18+
19+ run :
20+ @echo ------------------------------------ executing test $@
21+ ./$(TEST ) .$(EXE )
22+
23+ verify : ;
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+
16+ # Shared lit script for each tests. Run bash commands that run tests with make.
17+
18+ # RUN: KEEP_FILES=%keep FLAGS=%flags TEST_SRC=%s MAKE_FILE_DIR=%S/.. bash %S/runmake | tee %t
19+ # RUN: cat %t | FileCheck %S/runmake
Original file line number Diff line number Diff line change 1+ #
2+ # Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+
16+ # Shared lit script for each tests. Run bash commands that run tests with make.
17+
18+ # RUN: KEEP_FILES=%keep FLAGS=%flags TEST_SRC=%s MAKE_FILE_DIR=%S/.. bash %S/runmake | tee %t
19+ # RUN: cat %t | FileCheck %S/runmake
You can’t perform that action at this time.
0 commit comments