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
38505f3d
Commit
38505f3d
authored
3 years ago
by
hhakim
Browse files
Options
Downloads
Patches
Plain Diff
Add to pyfaust the support of float on GPU (not tested yet).
parent
347fe2b2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-0
10 additions, 0 deletions
CMakeLists.txt
wrapper/python/CMakeLists.txt
+10
-1
10 additions, 1 deletion
wrapper/python/CMakeLists.txt
with
20 additions
and
1 deletion
CMakeLists.txt
+
10
−
0
View file @
38505f3d
...
...
@@ -599,6 +599,16 @@ if(USE_GPU_MOD)
set
(
GPU_MOD_INCLUDE_DIR
${
PROJECT_SOURCE_DIR
}
/gpu_mod/src
)
# fallback to submodule directory in case find_package didn't work
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
GPU_MOD_CFLAGS
}
-I
${
GPU_MOD_INCLUDE_DIR
}
-DUSE_GPU_MOD"
)
# TODO: set a function or a foreach to factorize the code configuration
set
(
FAUST_SCALAR_FOR_GM float
)
set
(
GM_SCALAR float
)
set
(
GM_REINTERPRET_CAST_SCALAR float
)
configure_file
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_MatDense_gpu.cpp.in
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_MatDense_gpu_float.cpp
)
configure_file
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_MatSparse_gpu.cpp.in
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_MatSparse_gpu_float.cpp
)
configure_file
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_Transform_gpu.cpp.in
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_Transform_gpu_float.cpp
)
configure_file
(
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_Vect_gpu.cpp.in
${
FAUST_SRC_LINEAR_OPERATOR_GPU2_DIR
}
/faust_Vect_gpu_float.cpp
)
set
(
FAUST_SCALAR_FOR_GM double
)
set
(
GM_SCALAR double
)
set
(
GM_REINTERPRET_CAST_SCALAR double
)
...
...
This diff is collapsed.
Click to expand it.
wrapper/python/CMakeLists.txt
+
10
−
1
View file @
38505f3d
...
...
@@ -88,12 +88,18 @@ foreach(PROC IN LISTS PROC_LIST)
endforeach
()
endforeach
()
# TODO: support complex float
and GPU
(when ok put this in the foreach loop above)
# TODO: support complex float (when ok put this in the foreach loop above)
if
(
BUILD_FLOAT_PYX
)
set
(
TYPE_NAME float
)
set
(
PROC CPU
)
set
(
TYPE float
)
configure_file
(
${
FAUST_PYTHON_SRC_SRC_DIR
}
/FaustCoreCpp
${
PROC
}
.cpp.in
${
FAUST_PYTHON_BIN_DIR
}
/FaustCoreCpp
${
PROC
}${
TYPE_NAME
}
.cpp
)
if
(
USE_GPU_MOD
)
set
(
TYPE_NAME float
)
set
(
PROC GPU
)
set
(
TYPE float
)
configure_file
(
${
FAUST_PYTHON_SRC_SRC_DIR
}
/FaustCoreCpp
${
PROC
}
.cpp.in
${
FAUST_PYTHON_BIN_DIR
}
/FaustCoreCpp
${
PROC
}${
TYPE_NAME
}
.cpp
)
endif
()
endif
()
...
...
@@ -269,6 +275,9 @@ endforeach()
# TODO: support complex float and GPU (when ok put this in the foreach loop above)
if
(
BUILD_FLOAT_PYX
)
Generate_pyx
(
Flt float Flt float CPU flt
""
flt
)
if
(
USE_GPU_MOD
)
Generate_pyx
(
Flt float Flt float GPU flt
""
flt
)
endif
()
endif
()
if
(
NOT REMOTE_DATA_URL OR NOT REMOTE_DATA_FILE
)
...
...
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