Skip to content

Commit

Permalink
Renaming system directory and moving platform (sequential) specific t…
Browse files Browse the repository at this point in the history
…ests under the platform subdirectory
  • Loading branch information
sei-smcmillan committed Jun 14, 2018
1 parent b117eff commit d49e9e6
Show file tree
Hide file tree
Showing 28 changed files with 42 additions and 46 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ endif()

message("Configuring platform: ${PLATFORM}")

if (EXISTS ${CMAKE_SOURCE_DIR}/graphblas/system/${PLATFORM})
set(PLATFORM_SOURCE_DIR ${CMAKE_SOURCE_DIR}/graphblas/system/${PLATFORM})
if (EXISTS ${CMAKE_SOURCE_DIR}/graphblas/platforms/${PLATFORM})
set(PLATFORM_SOURCE_DIR ${CMAKE_SOURCE_DIR}/graphblas/platforms/${PLATFORM})
else()
unset(PLATFORM CACHE)
message(FATAL_ERROR "Specified platform directory does not exist.")
Expand Down Expand Up @@ -64,7 +64,7 @@ foreach( testsourcefile ${TEST_SOURCES} )
endforeach( testsourcefile ${TEST_SOURCES} )

### Make extra PLATFORM-specific tests
file( GLOB TEST_SOURCES LIST_DIRECTORIES false ${CMAKE_SOURCE_DIR}/test/${PLATFORM}/*.cpp )
file( GLOB TEST_SOURCES LIST_DIRECTORIES false ${PLATFORM_SOURCE_DIR}/test/*.cpp )
foreach( testsourcefile ${TEST_SOURCES} )
get_filename_component(justname ${testsourcefile} NAME)
string( REPLACE ".cpp" "" testname ${justname} )
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,44 +23,44 @@
// 2. Specify a single include file that contains the include
// directives for all of the platform's header files
#if(GB_INCLUDE_BACKEND_ALL)
#include <graphblas/system/GB_BACKEND_NAME/GB_BACKEND_NAME.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/GB_BACKEND_NAME.hpp>
#undef GB_INCLUDE_BACKEND_ALL
#endif

// 3. Specify the include file that defines the platform's Matrix base class
#if(GB_INCLUDE_BACKEND_MATRIX)
#include <graphblas/system/GB_BACKEND_NAME/Matrix.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/Matrix.hpp>
#undef GB_INCLUDE_BACKEND_MATRIX
#endif

// 4. Specify the include file that defines the platform's Vector base class
#if(GB_INCLUDE_BACKEND_VECTOR)
#include <graphblas/system/GB_BACKEND_NAME/Vector.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/Vector.hpp>
#undef GB_INCLUDE_BACKEND_VECTOR
#endif

// 5. Specify the include file that defines the pretty_print and
// pretty_print_matrix functions.
#if(GB_INCLUDE_BACKEND_UTILITY)
#include <graphblas/system/GB_BACKEND_NAME/utility.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/utility.hpp>
#undef GB_INCLUDE_BACKEND_UTILITY
#endif

// 6. Specify the include file that defines the platform's TransposeView class
#if(GB_INCLUDE_BACKEND_TRANSPOSE_VIEW)
#include <graphblas/system/GB_BACKEND_NAME/TransposeView.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/TransposeView.hpp>
#undef GB_INCLUDE_BACKEND_TRANSPOSE_VIEW
#endif

// 7. Specify the include file that defines the platform's ComplementView class
#if(GB_INCLUDE_BACKEND_COMPLEMENT_VIEW)
#include <graphblas/system/GB_BACKEND_NAME/ComplementView.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/ComplementView.hpp>
#undef GB_INCLUDE_BACKEND_COMPLEMENT_VIEW
#endif

// 8. Specify the include file(s) that defines the platform's
// operations functions.
#if(GB_INCLUDE_BACKEND_OPERATIONS)
#include <graphblas/system/GB_BACKEND_NAME/operations.hpp>
#include <graphblas/platforms/GB_BACKEND_NAME/operations.hpp>
#undef GB_INCLUDE_BACKEND_OPERATIONS
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
#ifndef GB_SEQUENTIAL_NEW_COMPLEMENT_VIEW_HPP
#define GB_SEQUENTIAL_NEW_COMPLEMENT_VIEW_HPP

#include <graphblas/system/sequential/types.hpp>

#include <graphblas/system/sequential/Matrix.hpp>
#include <graphblas/platforms/sequential/Matrix.hpp>

namespace GraphBLAS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

#include <graphblas/graphblas.hpp>

#include <graphblas/system/sequential/types.hpp>

//****************************************************************************

namespace GraphBLAS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#pragma once

#include <cstddef>
#include <graphblas/system/sequential/LilSparseMatrix.hpp>
#include <graphblas/platforms/sequential/LilSparseMatrix.hpp>

//****************************************************************************

Expand Down Expand Up @@ -92,4 +92,4 @@ namespace GraphBLAS
}

// HACK
#include <graphblas/system/sequential/utility.hpp>
#include <graphblas/platforms/sequential/utility.hpp>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef GB_SEQUENTIAL_TRANSPOSE_VIEW_HPP
#define GB_SEQUENTIAL_TRANSPOSE_VIEW_HPP

#include <graphblas/system/sequential/Matrix.hpp>
#include <graphblas/platforms/sequential/Matrix.hpp>

//****************************************************************************

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <graphblas/detail/config.hpp>
#include <vector>
#include <graphblas/system/sequential/BitmapSparseVector.hpp>
#include <graphblas/platforms/sequential/BitmapSparseVector.hpp>

namespace GraphBLAS
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,35 @@
// sets of files as specified by the user.

#if(GB_INCLUDE_BACKEND_ALL)
#include <graphblas/system/sequential/sequential.hpp>
#include <graphblas/platforms/sequential/sequential.hpp>
#endif

#if(GB_INCLUDE_BACKEND_MATRIX)
#include <graphblas/system/sequential/Matrix.hpp>
#include <graphblas/platforms/sequential/Matrix.hpp>
#undef GB_INCLUDE_BACKEND_MATRIX
#endif

#if(GB_INCLUDE_BACKEND_VECTOR)
#include <graphblas/system/sequential/Vector.hpp>
#include <graphblas/platforms/sequential/Vector.hpp>
#undef GB_INCLUDE_BACKEND_VECTOR
#endif

#if(GB_INCLUDE_BACKEND_UTILITY)
#include <graphblas/system/sequential/utility.hpp>
#include <graphblas/platforms/sequential/utility.hpp>
#undef GB_INCLUDE_BACKEND_UTILITY
#endif

#if(GB_INCLUDE_BACKEND_TRANSPOSE_VIEW)
#include <graphblas/system/sequential/TransposeView.hpp>
#include <graphblas/platforms/sequential/TransposeView.hpp>
#undef GB_INCLUDE_BACKEND_TRANSPOSE_VIEW
#endif

#if(GB_INCLUDE_BACKEND_COMPLEMENT_VIEW)
#include <graphblas/system/sequential/ComplementView.hpp>
#include <graphblas/platforms/sequential/ComplementView.hpp>
#undef GB_INCLUDE_BACKEND_COMPLEMENT_VIEW
#endif

#if(GB_INCLUDE_BACKEND_OPERATIONS)
#include <graphblas/system/sequential/operations.hpp>
#include <graphblas/platforms/sequential/operations.hpp>
#undef GB_INCLUDE_BACKEND_OPERATIONS
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
#include <iterator>

#include <graphblas/algebra.hpp>
#include <graphblas/system/sequential/TransposeView.hpp>
#include <graphblas/system/sequential/ComplementView.hpp>
#include <graphblas/platforms/sequential/TransposeView.hpp>
#include <graphblas/platforms/sequential/ComplementView.hpp>

// Add individual operation files here
#include <graphblas/system/sequential/sparse_mxm.hpp>
#include <graphblas/system/sequential/sparse_mxv.hpp>
#include <graphblas/system/sequential/sparse_vxm.hpp>
#include <graphblas/system/sequential/sparse_ewisemult.hpp>
#include <graphblas/system/sequential/sparse_ewiseadd.hpp>
#include <graphblas/system/sequential/sparse_extract.hpp>
#include <graphblas/system/sequential/sparse_assign.hpp>
#include <graphblas/system/sequential/sparse_apply.hpp>
#include <graphblas/system/sequential/sparse_reduce.hpp>
#include <graphblas/system/sequential/sparse_transpose.hpp>
#include <graphblas/platforms/sequential/sparse_mxm.hpp>
#include <graphblas/platforms/sequential/sparse_mxv.hpp>
#include <graphblas/platforms/sequential/sparse_vxm.hpp>
#include <graphblas/platforms/sequential/sparse_ewisemult.hpp>
#include <graphblas/platforms/sequential/sparse_ewiseadd.hpp>
#include <graphblas/platforms/sequential/sparse_extract.hpp>
#include <graphblas/platforms/sequential/sparse_assign.hpp>
#include <graphblas/platforms/sequential/sparse_apply.hpp>
#include <graphblas/platforms/sequential/sparse_reduce.hpp>
#include <graphblas/platforms/sequential/sparse_transpose.hpp>


namespace GraphBLAS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@

#pragma once

#include <graphblas/system/sequential/Matrix.hpp>
#include <graphblas/system/sequential/Vector.hpp>
#include <graphblas/platforms/sequential/Matrix.hpp>
#include <graphblas/platforms/sequential/Vector.hpp>

#include <graphblas/system/sequential/utility.hpp>
#include <graphblas/platforms/sequential/utility.hpp>

#include <graphblas/system/sequential/TransposeView.hpp>
#include <graphblas/system/sequential/ComplementView.hpp>
#include <graphblas/platforms/sequential/TransposeView.hpp>
#include <graphblas/platforms/sequential/ComplementView.hpp>

#include <graphblas/system/sequential/operations.hpp>
#include <graphblas/platforms/sequential/operations.hpp>

#include <graphblas/system/sequential/BitmapSparseVector.hpp>
#include <graphblas/system/sequential/LilSparseMatrix.hpp>
#include <graphblas/platforms/sequential/BitmapSparseVector.hpp>
#include <graphblas/platforms/sequential/LilSparseMatrix.hpp>

#endif // GB_SEQUENTIAL_HPP
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d49e9e6

Please sign in to comment.