Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update single-file concatenation script #223

Merged
merged 3 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 41 additions & 43 deletions scripts/create-single-source-file-programs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# Copyright (c), The Regents of the University of California
# Terms of use are as specified in LICENSE.txt
# ----
# This script concatenates the Inference-Engine software stack into
# single-source-file programs.
# This script concatenates the Fiats software stack into single-source-file programs.

echo ""
echo "---------------------- create-single-source-file.sh ----------------------------"
Expand All @@ -12,7 +11,7 @@ if [ ! -d ../build/dependencies/assert ] || [ ! -d ../build/dependencies/julienn
echo ""
echo "Dependencies assert and julienne were not found in ../build/dependencies."
echo "Running fpm build to download the dependencies."
echo "This unavoidably builds inference-engine too."
echo "This unavoidably builds fiats too."
echo ""
echo ""
fpm build
Expand All @@ -25,7 +24,7 @@ else
exit 1
fi

echo "Concatenating assert, julienne, and inference-engine."
echo "Concatenating Assert, Julienne, and Fiats."
cat \
../build/dependencies/assert/src/assert/characterizable_m.f90 \
../build/dependencies/assert/src/assert/intrinsic_array_m.F90 \
Expand All @@ -36,6 +35,7 @@ cat \
> single-file.F90

cat \
../build/dependencies/julienne/src/julienne/julienne_github_ci_m.f90 \
../build/dependencies/julienne/src/julienne/julienne_bin_m.f90 \
../build/dependencies/julienne/src/julienne/julienne_command_line_m.f90 \
../build/dependencies/julienne/src/julienne/julienne_formats_m.F90 \
Expand All @@ -56,49 +56,47 @@ cat \
../build/dependencies/julienne/src/julienne/julienne_test_description_s.f90 \
../build/dependencies/julienne/src/julienne/julienne_test_s.F90 \
../build/dependencies/julienne/src/julienne/julienne_vector_test_description_s.f90 \
../build/dependencies/julienne/src/julienne/julienne_github_ci_s.f90 \
../build/dependencies/julienne/src/julienne_m.f90 \
>> single-file.F90

cat \
../src/inference_engine/kind_parameters_m.f90 \
../src/inference_engine/activation_strategy_m.f90 \
../src/inference_engine/differentiable_activation_strategy_m.f90 \
../src/inference_engine/gelu_m.f90 \
../src/inference_engine/relu_m.f90 \
../src/inference_engine/sigmoid_m.f90 \
../src/inference_engine/step_m.f90 \
../src/inference_engine/swish_m.f90 \
../src/inference_engine/hyperparameters_m.f90 \
../src/inference_engine/network_configuration_m.f90 \
../src/inference_engine/training_configuration_m.f90 \
../src/inference_engine/neuron_m.f90 \
../src/inference_engine/metadata_m.f90 \
../src/inference_engine/tensor_m.f90 \
../src/inference_engine/input_output_pair_m.f90 \
../src/inference_engine/mini_batch_m.f90 \
../src/inference_engine/tensor_range_m.f90 \
../src/inference_engine/ubounds_m.f90 \
../src/inference_engine/inference_engine_m_.f90 \
../src/inference_engine/layer_m.f90 \
../src/inference_engine/trainable_engine_m.F90 \
../src/inference_engine_m.f90 \
../src/inference_engine/gelu_s.f90 \
../src/inference_engine/relu_s.f90 \
../src/inference_engine/step_s.f90 \
../src/inference_engine/sigmoid_s.f90 \
../src/inference_engine/swish_s.f90 \
../src/inference_engine/training_configuration_s.F90 \
../src/inference_engine/network_configuration_s.F90 \
../src/inference_engine/hyperparameters_s.f90 \
../src/inference_engine/input_output_pair_s.f90 \
../src/inference_engine/neuron_s.f90 \
../src/inference_engine/layer_s.f90 \
../src/inference_engine/metadata_s.f90 \
../src/inference_engine/mini_batch_s.f90 \
../src/inference_engine/tensor_s.f90 \
../src/inference_engine/tensor_range_s.f90 \
../src/inference_engine/inference_engine_s.F90 \
../src/inference_engine/trainable_engine_s.F90 \
../src/fiats/kind_parameters_m.f90 \
../src/fiats/double_precision_file_m.f90 \
../src/fiats/double_precision_string_m.f90 \
../src/fiats/activation_m.f90 \
../src/fiats/hyperparameters_m.f90 \
../src/fiats/network_configuration_m.f90 \
../src/fiats/training_configuration_m.f90 \
../src/fiats/neuron_m.f90 \
../src/fiats/neural_network_m.f90 \
../src/fiats/metadata_m.f90 \
../src/fiats/tensor_m.f90 \
../src/fiats/tensor_names_m.f90 \
../src/fiats/input_output_pair_m.f90 \
../src/fiats/mini_batch_m.f90 \
../src/fiats/tensor_map_m.f90 \
../src/fiats/layer_m.f90 \
../src/fiats/trainable_network_m.F90 \
../src/fiats_m.f90 \
../src/fiats/double_precision_file_s.f90 \
../src/fiats/double_precision_string_s.f90 \
../src/fiats/training_configuration_s.F90 \
../src/fiats/activation_s.f90 \
../src/fiats/unmapped_network_s.f90 \
../src/fiats/workspace_s.f90 \
../src/fiats/network_configuration_s.F90 \
../src/fiats/hyperparameters_s.f90 \
../src/fiats/input_output_pair_s.f90 \
../src/fiats/neuron_s.f90 \
../src/fiats/neural_network_s.F90 \
../src/fiats/layer_s.f90 \
../src/fiats/metadata_s.f90 \
../src/fiats/mini_batch_s.f90 \
../src/fiats/tensor_s.f90 \
../src/fiats/tensor_map_s.f90 \
../src/fiats/tensor_names_s.f90 \
../src/fiats/trainable_network_s.F90 \
>> single-file.F90

echo "Creating concurrent-inferences.F90"
Expand Down
96 changes: 0 additions & 96 deletions setup.sh

This file was deleted.

Loading