Skip to content
Permalink
Browse files

Add support for libpgmath Windows and OSX builds with clang.

Majority of CmakeLists.txt and lit*.cfg* changes attributable
to PR#719: #719

1) Differentiate between CMAKE_SYSTEM_PROCESSOR and
   LIBPGMATH_SYSTEM_PROCESSOR throughout libpgmath configuration
   scripts.

2) Windows version of CMAKE_SYSTEM_PROCESSOR is defined as "AMD64".
   If building for Windows, set LIBPGMATH_SYSTEM_PROCESSOR to "x86_64".
   This eliminates any need for most conditional logic that applies
   to both Linux and Windows Intel 64 source/object files.

3) Cleanup various L1 and L2 definitions (C preprocessor -D<def>)
   eliminating duplicates.

4) Special case building of DLL in runtime/libpgmath/lib/CMakeLists.txt
   for the MSYS environment.

5) To support Window's unique complex variable declarations of
   _Fcomplex and _Dcomplex, globally change declarations of the form:
	float _Complex f
	double _Complex d
   to:
	float_complex_t
	double_complex_t

6) Introduce two forms of complex variable assignment:
   a) float/double static/constants use the CPP function macro
      PGMATH_CMPLX_CONST
   b) Complex variables composed of real and imaginary variables
      (not constants) use:
      float_complex_t pgmath_cmplxf(float, float);
      double_complex_t pgmath_cmplx(double, double);

7) runtime/libpgmath/lib/CMakeLists.txt
   Windows: only build static version of libpgmath.
  • Loading branch information...
gklimowicz committed Aug 1, 2019
1 parent e68c5c5 commit 2ffc9d663e60320c4ae1aeed4d1f9124f82489e2
Showing with 707 additions and 779 deletions.
  1. +18 −5 runtime/libpgmath/CMakeLists.txt
  2. +37 −20 runtime/libpgmath/lib/CMakeLists.txt
  3. +2 −2 runtime/libpgmath/lib/aarch64/atan/CMakeLists.txt
  4. +2 −2 runtime/libpgmath/lib/aarch64/atan2/CMakeLists.txt
  5. +2 −2 runtime/libpgmath/lib/aarch64/cosh/CMakeLists.txt
  6. +2 −2 runtime/libpgmath/lib/aarch64/log10/CMakeLists.txt
  7. +2 −2 runtime/libpgmath/lib/aarch64/mod/CMakeLists.txt
  8. +2 −2 runtime/libpgmath/lib/aarch64/sinh/CMakeLists.txt
  9. +2 −2 runtime/libpgmath/lib/aarch64/tan/CMakeLists.txt
  10. +2 −2 runtime/libpgmath/lib/aarch64/tanh/CMakeLists.txt
  11. +17 −20 runtime/libpgmath/lib/common/CMakeLists.txt
  12. +6 −6 runtime/libpgmath/lib/common/acos/fma3/CMakeLists.txt
  13. +2 −2 runtime/libpgmath/lib/common/acosd.c
  14. +2 −2 runtime/libpgmath/lib/common/amod.c
  15. +6 −6 runtime/libpgmath/lib/common/asin/fma3/CMakeLists.txt
  16. +2 −2 runtime/libpgmath/lib/common/asind.c
  17. +2 −2 runtime/libpgmath/lib/common/atan2d.c
  18. +2 −2 runtime/libpgmath/lib/common/atand.c
  19. +2 −2 runtime/libpgmath/lib/common/cabs.c
  20. +2 −2 runtime/libpgmath/lib/common/cacos.c
  21. +2 −2 runtime/libpgmath/lib/common/casin.c
  22. +2 −2 runtime/libpgmath/lib/common/catan.c
  23. +5 −5 runtime/libpgmath/lib/common/ccos.c
  24. +2 −2 runtime/libpgmath/lib/common/ccosh.c
  25. +2 −2 runtime/libpgmath/lib/common/cdacos.c
  26. +2 −2 runtime/libpgmath/lib/common/cdasin.c
  27. +2 −2 runtime/libpgmath/lib/common/cdatan.c
  28. +2 −2 runtime/libpgmath/lib/common/cdcosh.c
  29. +2 −3 runtime/libpgmath/lib/common/cdpowi.c
  30. +2 −3 runtime/libpgmath/lib/common/cdpowk.c
  31. +2 −2 runtime/libpgmath/lib/common/cdsinh.c
  32. +2 −2 runtime/libpgmath/lib/common/cdsqrt.c
  33. +2 −2 runtime/libpgmath/lib/common/cdtan.c
  34. +2 −2 runtime/libpgmath/lib/common/cdtanh.c
  35. +2 −2 runtime/libpgmath/lib/common/cexp.c
  36. +3 −3 runtime/libpgmath/lib/common/clog.c
  37. +2 −2 runtime/libpgmath/lib/common/cosd.c
  38. +6 −6 runtime/libpgmath/lib/common/cpowc.c
  39. +3 −3 runtime/libpgmath/lib/common/cpowi.c
  40. +3 −3 runtime/libpgmath/lib/common/cpowk.c
  41. +5 −5 runtime/libpgmath/lib/common/csin.c
  42. +2 −2 runtime/libpgmath/lib/common/csinh.c
  43. +5 −5 runtime/libpgmath/lib/common/csqrt.c
  44. +2 −2 runtime/libpgmath/lib/common/ctan.c
  45. +2 −2 runtime/libpgmath/lib/common/ctanh.c
  46. +1 −3 runtime/libpgmath/lib/common/dispatch.c
  47. +2 −2 runtime/libpgmath/lib/common/erfcf.c
  48. +2 −2 runtime/libpgmath/lib/common/exp/CMakeLists.txt
  49. +6 −6 runtime/libpgmath/lib/common/exp/fma3/CMakeLists.txt
  50. +2 −3 runtime/libpgmath/lib/common/fpcvt.c
  51. +2 −2 runtime/libpgmath/lib/common/gammaf.c
  52. +2 −2 runtime/libpgmath/lib/common/hypotf.c
  53. +2 −2 runtime/libpgmath/lib/common/log/CMakeLists.txt
  54. +6 −6 runtime/libpgmath/lib/common/log/fma3/CMakeLists.txt
  55. +2 −2 runtime/libpgmath/lib/common/log_gammaf.c
  56. +164 −240 runtime/libpgmath/lib/common/mthdecls.h
  57. +5 −1 runtime/libpgmath/lib/common/pgstdinit.h
  58. +2 −2 runtime/libpgmath/lib/common/pow/CMakeLists.txt
  59. +6 −6 runtime/libpgmath/lib/common/pow/fma3/CMakeLists.txt
  60. +5 −5 runtime/libpgmath/lib/common/powi/CMakeLists.txt
  61. +3 −2 runtime/libpgmath/lib/common/sincos.c
  62. +6 −6 runtime/libpgmath/lib/common/sincos/CMakeLists.txt
  63. +3 −1 runtime/libpgmath/lib/common/sincos/gsincos.c
  64. +4 −3 runtime/libpgmath/lib/common/sincosf.c
  65. +2 −2 runtime/libpgmath/lib/common/sind.c
  66. +2 −2 runtime/libpgmath/lib/common/tand.c
  67. +2 −2 runtime/libpgmath/lib/generic/CMakeLists.txt
  68. +2 −2 runtime/libpgmath/lib/generic/acos.c
  69. +2 −2 runtime/libpgmath/lib/generic/acosh.c
  70. +2 −2 runtime/libpgmath/lib/generic/alog.c
  71. +2 −2 runtime/libpgmath/lib/generic/alog10.c
  72. +2 −2 runtime/libpgmath/lib/generic/asin.c
  73. +2 −2 runtime/libpgmath/lib/generic/asinh.c
  74. +2 −2 runtime/libpgmath/lib/generic/atan.c
  75. +2 −2 runtime/libpgmath/lib/generic/atan2.c
  76. +2 −2 runtime/libpgmath/lib/generic/atanh.c
  77. +2 −2 runtime/libpgmath/lib/generic/cos.c
  78. +2 −2 runtime/libpgmath/lib/generic/cosh.c
  79. +2 −2 runtime/libpgmath/lib/generic/exp.c
  80. +2 −2 runtime/libpgmath/lib/generic/log.c
  81. +2 −2 runtime/libpgmath/lib/generic/log10.c
  82. +5 −3 runtime/libpgmath/lib/generic/math_tables/CMakeLists.txt
  83. +2 −2 runtime/libpgmath/lib/generic/rpowr.c
  84. +2 −2 runtime/libpgmath/lib/generic/sin.c
  85. +2 −2 runtime/libpgmath/lib/generic/sinh.c
  86. +2 −2 runtime/libpgmath/lib/generic/sqrt.c
  87. +2 −2 runtime/libpgmath/lib/generic/tan.c
  88. +2 −2 runtime/libpgmath/lib/generic/tanh.c
  89. +15 −2 runtime/libpgmath/lib/x86_64/CMakeLists.txt
  90. +2 −2 runtime/libpgmath/lib/x86_64/acosh.c
  91. +2 −2 runtime/libpgmath/lib/x86_64/asinh.c
  92. +2 −2 runtime/libpgmath/lib/x86_64/atan/fma3/CMakeLists.txt
  93. +2 −2 runtime/libpgmath/lib/x86_64/atanh.c
  94. +10 −5 runtime/libpgmath/lib/x86_64/fast/CMakeLists.txt
  95. +6 −2 runtime/libpgmath/lib/x86_64/libm_amd.h
  96. +6 −4 runtime/libpgmath/lib/x86_64/math_tables/CMakeLists.txt
  97. +164 −240 runtime/libpgmath/lib/x86_64/mthdecls.h
  98. +2 −2 runtime/libpgmath/lib/x86_64/powi/CMakeLists.txt
  99. +7 −3 runtime/libpgmath/test/CMakeLists.txt
  100. +28 −8 runtime/libpgmath/test/lit.cfg
  101. +3 −3 runtime/libpgmath/test/lit.site.cfg.in
  102. +2 −2 runtime/libpgmath/tools/arch.c
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -51,7 +51,12 @@ if (LIBPGMATH_STANDALONE_BUILD)
endif()
endif()

if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(LIBPGMATH_SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")
if ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "AMD64")
set(LIBPGMATH_SYSTEM_PROCESSOR "x86_64")
endif ()

if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
if ("${LLVM_FLANG_CPU_TARGET}" STREQUAL "")
message(STATUS "Setting libpgmath CPU target to 'native'")
set(LLVM_FLANG_CPU_TARGET "native")
@@ -60,7 +65,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
endif()
endif()

if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64|aarch64")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64|aarch64")
if(CMAKE_C_COMPILER_VERSION VERSION_LESS "7.1.0")
message(FATAL_ERROR "Found gcc at " ${CMAKE_C_COMPILER} " version " ${CMAKE_C_COMPILER_VERSION} ", but version 7.1.0 or newer required.")
else()
@@ -74,7 +79,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86
# # etc.
endif()

if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND ${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
string(REPLACE "-O2" "-O3 -finline-functions -funroll-loops" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
string(REPLACE "-O2" "-O3 -finline-functions -funroll-loops" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
string(REPLACE "-std=c++11" "-std=gnu++11" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
@@ -101,7 +106,7 @@ set(LIBPGMATH_TOOLS_DIR ${LIBPGMATH_BASE_DIR}/tools)
set(LIBPGMATH_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
set(LIBPGMATH_RUNTIME_PATH ${CMAKE_BINARY_DIR}/lib)
set(LIBPGMATH_LIBRARY_NAME pgmath)
set(LIBPGMATH_RTL lib${LIBPGMATH_LIBRARY_NAME}.so)
set(LIBPGMATH_RTL ${CMAKE_SHARED_LIBRARY_PREFIX}${LIBPGMATH_LIBRARY_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX})
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Require out of source build.
@@ -117,3 +122,11 @@ include(LibmathUtils)
# Setup Source Code And Tests
add_subdirectory(lib)
add_subdirectory(test)

if(0)
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
endif()
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -14,15 +14,17 @@
# limitations under the License.
#

# This value will be the same as CMAKE_SYSTEM_PROCESSOR
set(PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
if(${LIBPGMATH_WITH_GENERIC} OR (NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|aarch64"))
# This value will be the same as LIBPGMATH_SYSTEM_PROCESSOR
set(PROCESSOR ${LIBPGMATH_SYSTEM_PROCESSOR})
if(${LIBPGMATH_WITH_GENERIC} OR (NOT ${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64|aarch64"))
set(PROCESSOR "generic")
endif()

find_program(SH_PROGRAM NAMES sh bash)

set_property(GLOBAL APPEND PROPERTY "TARGET_OBJECTS")

if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GENERIC})
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

set(DEFINITIONS_L1
@@ -63,7 +65,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GEN
TARGET_X8664 __gnu_osx__ PG_PIC)
set(FLAGS_L1 "-m64 -O3 -fomit-frame-pointer ")

set(DEFINITIONS_L2 OSX86 TARGET_OSX_X86 TARGET_OSX_X8664 PG_PIC TARGET_X86 TARGET_X8664)
set(DEFINITIONS_L2 OSX86 TARGET_OSX TARGET_OSX_X86 TARGET_OSX_X8664 PG_PIC TARGET_X86 TARGET_X8664)
set(FLAGS_L2 "-m64 -O3 -fomit-frame-pointer -mavx2 -mfma ")

# common
@@ -88,13 +90,15 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GEN
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(DEFINITIONS_L1
TARGET_WIN_X8664 TARGET_WIN _PGI_NOBUILTINS MAXCPUS=256
MAXCPUSL=8 MAXCPUSR=8 WINNT WIN64 LONG_IS_32 _PGI_NOBUILTINS
WINNT WIN64 TARGET_WIN_X8664 HOST_WIN _DLL)
MAXCPUSL=8 MAXCPUSR=8 WINNT WIN64 LONG_IS_32
HOST_WIN TARGET_X8664 _NO_CRT_STDIO_INLINE)
#djp HOST_WIN _DLL TARGET_X8664 _NO_CRT_STDIO_INLINE)

set(DEFINITIONS_L2
TARGET_WIN_X8664 TARGET_WIN _PGI_NOBUILTINS MAXCPUS=256
MAXCPUSL=8 MAXCPUSR=8 WINNT WIN64 LONG_IS_32 _PGI_NOBUILTINS
WINNT WIN64 TARGET_WIN_X8664 HOST_WIN _DLL)
MAXCPUSL=8 MAXCPUSR=8 WINNT WIN64 LONG_IS_32
HOST_WIN TARGET_X8664 _NO_CRT_STDIO_INLINE)
#djp HOST_WIN _DLL TARGET_X8664 _NO_CRT_STDIO_INLINE)

# common
# Definitions and compiler flags for level 1 directories
@@ -118,7 +122,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GEN
else()
message(FATAL "Operating System not supported.")
endif()
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "ppc64le")

set(DEFINITIONS_L1 HOST_LINUX MAXCPUS=256 MAXCPUSL=8 MAXCPUSR=8 TARGET_LINUX
TARGET_LINUX_POWER TARGET_LLVM TARGET_LLVM_LINUXPOWER TM_I8 PG_PIC)
@@ -147,7 +151,7 @@ elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
set_property(GLOBAL APPEND PROPERTY "DEFINITIONS_PPC64LE_L2" ${DEFINITIONS_L2})
set_property(GLOBAL APPEND_STRING PROPERTY "FLAGS_PPC64LE_L2" ${FLAGS_L2})
# ppc64le
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(DEFINITIONS_L1 HOST_LINUX MAXCPUS=8192 MAXCPUSL=128 MAXCPUSR=128
TARGET_LINUX TARGET_LINUX_ARM TARGET_LINUX_ARM64 TARGET_LLVM
TARGET_LLVM_LINUXAARCH64 TM_I8)
@@ -210,11 +214,11 @@ else()
endif()

include_directories(common)
if(${PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GENERIC})
if(${PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
include_directories(x86_64)
# elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
# elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "ppc64le")
# include_directories(ppc64le)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
include_directories(generic)
include_directories(aarch64)
elseif(${PROCESSOR} MATCHES "ppc64le|generic" OR ${LIBPGMATH_WITH_GENERIC})
@@ -223,11 +227,11 @@ endif()

# Add directories to build
add_subdirectory(common)
if(${PROCESSOR} MATCHES "x86_64|AMD64" AND NOT ${LIBPGMATH_WITH_GENERIC})
if(${PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
add_subdirectory(x86_64)
# elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64le")
# elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "ppc64le")
# add_subdirectory(ppc64le)
elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
elseif(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
add_subdirectory(generic)
add_subdirectory(aarch64)
elseif(${PROCESSOR} MATCHES "ppc64le|generic" OR ${LIBPGMATH_WITH_GENERIC})
@@ -237,9 +241,22 @@ endif()
# Create libmath static library
get_property(TARGET_OBJECTS GLOBAL PROPERTY "TARGET_OBJECTS")

add_library(${LIBPGMATH_LIBRARY_NAME} SHARED ${TARGET_OBJECTS})
add_library(${LIBPGMATH_LIBRARY_NAME}_static STATIC ${TARGET_OBJECTS})
set_target_properties(${LIBPGMATH_LIBRARY_NAME}_static PROPERTIES OUTPUT_NAME ${LIBPGMATH_LIBRARY_NAME})
add_library(${LIBPGMATH_LIBRARY_NAME} SHARED ${TARGET_OBJECTS})
target_link_libraries(${LIBPGMATH_LIBRARY_NAME} INTERFACE ${LIBPGMATH_LIBRARY_NAME}_static)
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set_target_properties(${LIBPGMATH_LIBRARY_NAME}_static PROPERTIES OUTPUT_NAME lib${LIBPGMATH_LIBRARY_NAME})
set_target_properties(${LIBPGMATH_LIBRARY_NAME} PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
if(${CMAKE_GENERATOR} MATCHES "MSYS Makefiles")
add_custom_command (TARGET ${LIBPGMATH_LIBRARY_NAME} PRE_LINK
COMMAND sed 's/ /\\n/g' CMakeFiles/pgmath.dir/objects1.rsp > objects1.txt
COMMAND ${CMAKE_COMMAND} -E __create_def libpgmath.def objects1.txt
)
endif()

else()
set_target_properties(${LIBPGMATH_LIBRARY_NAME}_static PROPERTIES OUTPUT_NAME ${LIBPGMATH_LIBRARY_NAME})
endif()
install(TARGETS ${LIBPGMATH_LIBRARY_NAME}
LIBRARY DESTINATION lib)
install(TARGETS ${LIBPGMATH_LIBRARY_NAME}_static
@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gsatan4.c gdatan2.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gsatan24.c gdatan22.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gscosh4.c gdcosh2.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gslog104.c gdlog102.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gmod_128.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gssinh4.c gdsinh2.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gstan4.c gdtan2.c)
endif()

@@ -1,5 +1,5 @@
#
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ get_property(FLAGS GLOBAL PROPERTY "FLAGS_L1")
set(SRCS)

# Set source files, compiler flags and definitions
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64")
if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "aarch64")
set(SRCS gstanh4.c gdtanh2.c)
endif()

0 comments on commit 2ffc9d6

Please sign in to comment.
You can’t perform that action at this time.