-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from neoblizz/dev
Known Issue: nvbench breaks loaders. (resolved)
- Loading branch information
Showing
22 changed files
with
619 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
if(NOT WIN32) | ||
string(ASCII 27 Esc) | ||
set(ColourReset "${Esc}[m") | ||
set(ColourBold "${Esc}[1m") | ||
set(Red "${Esc}[31m") | ||
set(Green "${Esc}[32m") | ||
set(Yellow "${Esc}[33m") | ||
set(Blue "${Esc}[34m") | ||
set(Magenta "${Esc}[35m") | ||
set(Cyan "${Esc}[36m") | ||
set(White "${Esc}[37m") | ||
set(BoldRed "${Esc}[1;31m") | ||
set(BoldGreen "${Esc}[1;32m") | ||
set(BoldYellow "${Esc}[1;33m") | ||
set(BoldBlue "${Esc}[1;34m") | ||
set(BoldMagenta "${Esc}[1;35m") | ||
set(BoldCyan "${Esc}[1;36m") | ||
set(BoldWhite "${Esc}[1;37m") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# begin /* Add application */ | ||
set(SOURCES | ||
thread_mapped.cu | ||
) | ||
|
||
foreach(SOURCE IN LISTS SOURCES) | ||
get_filename_component(TEST_NAME ${SOURCE} NAME_WLE) | ||
add_executable(loops.spmm.${TEST_NAME} ${SOURCE}) | ||
target_link_libraries(loops.spmm.${TEST_NAME} PRIVATE loops) | ||
set_target_properties(loops.spmm.${TEST_NAME} | ||
PROPERTIES | ||
CUDA_ARCHITECTURES ${CMAKE_CUDA_ARCHITECTURES} | ||
) | ||
message(STATUS "Example Added: loops.spmm.${TEST_NAME}") | ||
endforeach() | ||
# end /* Add application */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/** | ||
* @file helpers.hxx | ||
* @author Muhammad Osama (mosama@ucdavis.edu) | ||
* @brief Header file for SpMM. | ||
* @version 0.1 | ||
* @date 2022-02-03 | ||
* | ||
* @copyright Copyright (c) 2022 | ||
* | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <loops/util/generate.hxx> | ||
#include <loops/container/formats.hxx> | ||
#include <loops/container/vector.hxx> | ||
#include <loops/container/market.hxx> | ||
#include <loops/util/filepath.hxx> | ||
#include <loops/util/equal.hxx> | ||
#include <loops/util/device.hxx> | ||
#include <loops/util/timer.hxx> | ||
#include <loops/memory.hxx> | ||
#include <cxxopts.hpp> | ||
|
||
#include <algorithm> | ||
#include <iostream> | ||
|
||
struct parameters_t { | ||
std::string filename; | ||
bool validate; | ||
bool verbose; | ||
cxxopts::Options options; | ||
|
||
/** | ||
* @brief Construct a new parameters object and parse command line arguments. | ||
* | ||
* @param argc Number of command line arguments. | ||
* @param argv Command line arguments. | ||
*/ | ||
parameters_t(int argc, char** argv) | ||
: options(argv[0], "Sparse Matrix-Matrix Multiplication") { | ||
// Add command line options | ||
options.add_options()("h,help", "Print help") // help | ||
("m,market", "Matrix file", cxxopts::value<std::string>()) // mtx | ||
("validate", "CPU validation") // validate | ||
("v,verbose", "Verbose output"); // verbose | ||
|
||
// Parse command line arguments | ||
auto result = options.parse(argc, argv); | ||
|
||
if (result.count("help") || (result.count("market") == 0)) { | ||
std::cout << options.help({""}) << std::endl; | ||
std::exit(0); | ||
} | ||
|
||
if (result.count("market") == 1) { | ||
filename = result["market"].as<std::string>(); | ||
if (loops::is_market(filename)) { | ||
} else { | ||
std::cout << options.help({""}) << std::endl; | ||
std::exit(0); | ||
} | ||
} else { | ||
std::cout << options.help({""}) << std::endl; | ||
std::exit(0); | ||
} | ||
|
||
if (result.count("validate") == 1) { | ||
validate = true; | ||
} else { | ||
validate = false; | ||
} | ||
|
||
if (result.count("verbose") == 1) { | ||
verbose = true; | ||
} else { | ||
verbose = false; | ||
} | ||
} | ||
}; |
Oops, something went wrong.