-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature Alpaka-OpenMP backend #97
Conversation
@@ -26,6 +26,10 @@ | |||
if tbb_found: | |||
import CLUE_CPU_TBB as cpu_tbb | |||
backends.append("cpu tbb") | |||
omp_found = exists(str(*glob(join(path, 'lib/CLUE_CPU_OMP*.so')))) | |||
if omp_found: | |||
import CLUE_CPU_OMP as cpu_omp |
Check warning
Code scanning / Prospector (reported by Codacy)
Unable to import 'CLUE_CPU_OMP' (import-error) Warning
@@ -26,6 +26,10 @@ | |||
if tbb_found: | |||
import CLUE_CPU_TBB as cpu_tbb | |||
backends.append("cpu tbb") | |||
omp_found = exists(str(*glob(join(path, 'lib/CLUE_CPU_OMP*.so')))) |
Check warning
Code scanning / Pylint (reported by Codacy)
Constant name "omp_found" doesn't conform to UPPER_CASE naming style Warning
@@ -600,7 +619,7 @@ | |||
print("HIP module not found. Please re-compile the library and try again.") | |||
else: | |||
raise ValueError("Invalid backend. The allowed choices for the" | |||
+ " backend are: all, cpu serial, cpu tbb and gpu cuda.") | |||
+ " backend are: all, cpu serial, cpu tbb, cpu openmp, gpu cuda and gpu hip.") |
Check warning
Code scanning / Pylint (reported by Codacy)
Line too long (107/100) Warning
@@ -26,6 +26,10 @@ | |||
if tbb_found: | |||
import CLUE_CPU_TBB as cpu_tbb | |||
backends.append("cpu tbb") | |||
omp_found = exists(str(*glob(join(path, 'lib/CLUE_CPU_OMP*.so')))) |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Constant name "omp_found" doesn't conform to UPPER_CASE naming style Warning
@@ -600,7 +619,7 @@ | |||
print("HIP module not found. Please re-compile the library and try again.") | |||
else: | |||
raise ValueError("Invalid backend. The allowed choices for the" | |||
+ " backend are: all, cpu serial, cpu tbb and gpu cuda.") | |||
+ " backend are: all, cpu serial, cpu tbb, cpu openmp, gpu cuda and gpu hip.") |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Line too long (107/100) Warning
5bc9000
to
397c460
Compare
cf7d924
to
dcbac9f
Compare
This PR adds the alpaka-based OpenMP backed for parallel execution on CPU, which serves as an alternative for the TBB backend.