Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_core
Commits
cd269563
Commit
cd269563
authored
1 year ago
by
Cyril Moineau
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' of gitlab.eclipse.org:eclipse/aidge/aidge_core into dev
parents
f830efec
fdaee8fb
No related branches found
No related tags found
1 merge request
!67
dev
Pipeline
#36872
passed
1 year ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab/ci/build.gitlab-ci.yml
+57
-57
57 additions, 57 deletions
.gitlab/ci/build.gitlab-ci.yml
.gitlab/ci/test.gitlab-ci.yml
+20
-20
20 additions, 20 deletions
.gitlab/ci/test.gitlab-ci.yml
include/aidge/operator/Producer.hpp
+1
-1
1 addition, 1 deletion
include/aidge/operator/Producer.hpp
with
78 additions
and
78 deletions
.gitlab/ci/build.gitlab-ci.yml
+
57
−
57
View file @
cd269563
...
...
@@ -95,60 +95,60 @@ build:ubuntu_python:
paths
:
-
venv/
build:windows_cpp
:
stage
:
build
needs
:
[]
tags
:
-
windows
image
:
buildtools
before_script
:
# Install Chocolatey
-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
-
choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
-
choco install git -Y
-
choco install python -Y
# Update PATH
-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
script
:
-
mkdir -p build_cpp
-
mkdir -p install_cpp
-
cd build_cpp
-
cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
-
cmake --build . -j2
-
cmake --install . --config Debug
artifacts
:
expire_in
:
1 week
paths
:
-
build_cpp/
-
install_cpp/
build:windows_python
:
stage
:
build
needs
:
[]
tags
:
-
windows
image
:
buildtools
before_script
:
# Install Chocolatey
-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
-
choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
-
choco install git -Y
-
choco install python -Y
# Update PATH
-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
script
:
-
python -m pip install virtualenv
-
virtualenv venv
-
venv\Scripts\Activate.ps1
# Numpy dependancy for unit test
-
python -m pip install -r requirements.txt
-
python -m pip install .
artifacts
:
expire_in
:
1 week
paths
:
-
venv/
#
build:windows_cpp:
#
stage: build
#
needs: []
#
tags:
#
- windows
#
image: buildtools
#
before_script:
#
# Install Chocolatey
#
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
#
# Install dependencies
#
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
#
- choco install git -Y
#
- choco install python -Y
#
# Update PATH
#
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
#
script:
#
- mkdir -p build_cpp
#
- mkdir -p install_cpp
#
- cd build_cpp
#
- cmake -DCMAKE_INSTALL_PREFIX:PATH=../install_cpp -DCMAKE_BUILD_TYPE=Debug ..
#
- cmake --build . -j2
#
- cmake --install . --config Debug
#
artifacts:
#
expire_in: 1 week
#
paths:
#
- build_cpp/
#
- install_cpp/
#
build:windows_python:
#
stage: build
#
needs: []
#
tags:
#
- windows
#
image: buildtools
#
before_script:
#
# Install Chocolatey
#
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
#
# Install dependencies
#
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
#
- choco install git -Y
#
- choco install python -Y
#
# Update PATH
#
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
#
script:
#
- python -m pip install virtualenv
#
- virtualenv venv
#
- venv\Scripts\Activate.ps1
#
# Numpy dependancy for unit test
#
- python -m pip install -r requirements.txt
#
- python -m pip install .
#
artifacts:
#
expire_in: 1 week
#
paths:
#
- venv/
This diff is collapsed.
Click to expand it.
.gitlab/ci/test.gitlab-ci.yml
+
20
−
20
View file @
cd269563
...
...
@@ -26,23 +26,23 @@ test:ubuntu_python:
reports
:
junit
:
${CI_PROJECT_NAME}/xmlrunner-results.xml
test:windows_cpp
:
stage
:
test
needs
:
[
"
build:windows_cpp"
]
tags
:
-
windows
image
:
buildtools
before_script
:
# Install Chocolatey
-
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install dependencies
-
choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
-
choco install python -Y
# Update PATH
-
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
script
:
-
cd build_cpp
-
ctest --output-junit ctest-results.xml --output-on-failure
artifacts
:
reports
:
junit
:
build_cpp/ctest-results.xml
#
test:windows_cpp:
#
stage: test
#
needs: ["build:windows_cpp"]
#
tags:
#
- windows
#
image: buildtools
#
before_script:
#
# Install Chocolatey
#
- Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
#
# Install dependencies
#
- choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' -Y
#
- choco install python -Y
#
# Update PATH
#
- $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
#
script:
#
- cd build_cpp
#
- ctest --output-junit ctest-results.xml --output-on-failure
#
artifacts:
#
reports:
#
junit: build_cpp/ctest-results.xml
This diff is collapsed.
Click to expand it.
include/aidge/operator/Producer.hpp
+
1
−
1
View file @
cd269563
...
...
@@ -110,7 +110,7 @@ public:
if
(
getAttr
<
ProdAttr
::
Constant
>
())
{
AIDGE_THROW_OR_ABORT
(
std
::
runtime_error
,
"Producer is constant, cannot update output."
);
}
OperatorTensor
::
setOutput
(
outputIdx
,
data
);
OperatorTensor
::
setOutput
(
outputIdx
,
std
::
move
(
data
)
)
;
}
void
setOutput
(
const
Aidge
::
IOIndex_t
outputIdx
,
const
std
::
shared_ptr
<
Aidge
::
Data
>&
data
)
override
{
...
...
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