Files
rocsparse/0001-prepare-rocsparse-cmake-for-fedora.patch

72 lines
2.0 KiB
Diff

From 9e73c29b401111f6ad828ebaf2cd21e4b398157a Mon Sep 17 00:00:00 2001
From: Tom Rix <trix@redhat.com>
Date: Sun, 8 Oct 2023 06:04:04 -0700
Subject: [PATCH] prepare rocsparse cmake for fedora
Do not build fortran
Signed-off-by: Tom Rix <trix@redhat.com>
---
CMakeLists.txt | 2 +-
library/CMakeLists.txt | 11 -----------
library/src/CMakeLists.txt | 8 --------
3 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0da59097..d4b7a970 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -51,7 +51,7 @@ if(POLICY CMP0066)
endif()
# rocSPARSE project
-project(rocsparse LANGUAGES CXX Fortran C)
+project(rocsparse LANGUAGES CXX )
# Determine if CXX Compiler is hip-clang
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 7d3b2f8f..637c3c6d 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -56,17 +56,6 @@ source_group("Header Files\\Public" FILES ${rocsparse_headers_public})
# Include sources
include(src/CMakeLists.txt)
-if (NOT WIN32)
-# Set Fortran module output directory
-set(CMAKE_Fortran_MODULE_DIRECTORY ${PROJECT_BINARY_DIR}/include/rocsparse)
-
-# Create rocSPARSE Fortran module
-add_library(rocsparse_fortran OBJECT ${rocsparse_fortran_source})
-
-# Target compile options
-target_compile_options(rocsparse_fortran PRIVATE -std=f2003 -ffree-form -cpp)
-endif()
-
# Create rocSPARSE library
add_library(rocsparse ${rocsparse_source} ${rocsparse_headers_public})
add_library(roc::rocsparse ALIAS rocsparse)
diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt
index a6508a5f..22441e4e 100644
--- a/library/src/CMakeLists.txt
+++ b/library/src/CMakeLists.txt
@@ -21,14 +21,6 @@
#
# ########################################################################
-# rocSPARSE Fortran source
-if (NOT WIN32)
-set(rocsparse_fortran_source
- src/rocsparse_enums.f90
- src/rocsparse.f90
-)
-endif()
-
# rocSPARSE source
set(rocsparse_source
src/handle.cpp
--
2.41.0