-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provides support for deployment of workflows. --------- Signed-off-by: Loic Pottier <[email protected]> Co-authored-by: Loic Pottier <[email protected]>
- Loading branch information
Showing
54 changed files
with
5,035 additions
and
439 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Copyright 2021-2023 Lawrence Livermore National Security, LLC and other | ||
# AMSLib Project Developers | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
set(binomial_options_src binomial_options.cpp kernel.cpp) | ||
|
||
function(ADDExec binary_name definitions) | ||
target_include_directories(${binary_name} PUBLIC "${AMS_EXAMPLE_INCLUDES}") | ||
target_compile_definitions(${binary_name} PRIVATE ${definitions}) | ||
target_compile_definitions(${binary_name} PRIVATE ${AMS_EXAMPLE_DEFINES}) | ||
target_link_directories(${binary_name} PRIVATE ${AMS_EXAMPLE_LIB_DIRS}) | ||
target_link_libraries(${binary_name} PUBLIC AMS ${AMS_EXAMPLE_LIBRARIES}) | ||
|
||
if (WITH_CUDA) | ||
set_source_files_properties(kernel.cpp PROPERTIES LANGUAGE CUDA) | ||
set_target_properties(${binary_name} PROPERTIES CUDA_ARCHITECTURES "${AMS_CUDA_ARCH}") | ||
endif() | ||
endfunction() | ||
|
||
add_executable(no_ams_bo ${binomial_options_src} ${MINIAPP_INCLUDES}) | ||
ADDExec(no_ams_bo minibude "${AMS_EXAMPLE_DEFINES}") | ||
|
||
list(APPEND AMS_EXAMPLE_DEFINES "-DUSE_AMS") | ||
add_executable(ams_bo ${binomial_options_src} ${MINIAPP_INCLUDES}) | ||
ADDExec(ams_bo "${AMS_EXAMPLE_DEFINES}") | ||
|
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,40 @@ | ||
/* | ||
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved. | ||
* | ||
* Please refer to the NVIDIA end user license agreement (EULA) associated | ||
* with this source code for terms and conditions that govern your use of | ||
* this software. Any use, reproduction, disclosure, or distribution of | ||
* this software and related documentation outside the terms of the EULA | ||
* is strictly prohibited. | ||
* | ||
*/ | ||
|
||
|
||
#ifndef BINOMIALOPTIONS_COMMON_H | ||
#define BINOMIALOPTIONS_COMMON_H | ||
|
||
#include "realtype.h" | ||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Global types | ||
//////////////////////////////////////////////////////////////////////////////// | ||
typedef struct { | ||
real S; | ||
real X; | ||
real T; | ||
real R; | ||
real V; | ||
} TOptionData; | ||
|
||
|
||
//////////////////////////////////////////////////////////////////////////////// | ||
// Global parameters | ||
//////////////////////////////////////////////////////////////////////////////// | ||
//Number of time steps | ||
#define NUM_STEPS 2048 | ||
//Max option batch size | ||
#define MAX_OPTIONS 1024 | ||
|
||
#define NUM_ITERATIONS 20 | ||
|
||
#endif |
Oops, something went wrong.