Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
faust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
faust group
faust
Commits
9efc183e
Commit
9efc183e
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Update cmake script to link torch libs to faust_torch test automatically.
parent
7528836a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc/test/CMakeLists.txt
+6
-2
6 additions, 2 deletions
misc/test/CMakeLists.txt
with
6 additions
and
2 deletions
misc/test/CMakeLists.txt
+
6
−
2
View file @
9efc183e
...
...
@@ -239,13 +239,17 @@ if(MATIO_LIB_FILE AND MATIO_INC_DIR AND BUILD_READ_MAT_FILE AND NOT NOCPPTESTS)
# Generation of the binary files in double and float precision
add_executable
(
${
TEST_CPP_NAME
}
${
FAUST_BIN_TEST_SRC_DIR
}
/
${
TEST_FILE_CPP
}
${
FAUST_BIN_TEST_SRC_DIR
}
/
${
FAUST_CMDLINE_TYPE_FORMAT_MAT_SRC_DIR
}
/faust_init_from_matio.cpp
${
FAUST_CMDLINE_TYPE_FORMAT_MAT_SRC_DIR
}
/faust_init_from_matio_mat.cpp
)
target_link_libraries
(
${
TEST_CPP_NAME
}
${
FAUST_TARGET
}
${
MATIO_LIB_FILE
}
${
HDF5_LIB_FILE
}
)
set
(
TEST_LIBS
${
FAUST_TARGET
}
;
${
MATIO_LIB_FILE
}
;
${
HDF5_LIB_FILE
}
)
if
(
FAUST_TORCH
)
list
(
APPEND TEST_LIBS
${
TORCH_LIBRARY
}
;
${
Torch_DIR
}
/../../../lib/libc10.so
)
endif
()
target_link_libraries
(
${
TEST_CPP_NAME
}
${
TEST_LIBS
}
)
if
(
USE_GPU_MOD
)
target_compile_options
(
${
TEST_CPP_NAME
}
PRIVATE
"
${
OMP_CXX_FLAGS
}
"
)
target_link_options
(
${
TEST_CPP_NAME
}
PRIVATE
"-fopenmp"
)
# might work only for linux
endif
()
endforeach
()
endforeach
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment